GithubHelp home page GithubHelp logo

mandrill's People

Contributors

iamgoodbytes avatar openeyesolutions avatar weblee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mandrill's Issues

Override Mandrill Messages

I want to save email content and its data in DB after send.
As Mandrill is shutting down its services on 11th Jan 2020 and we are using its API via this Library, Therefore we have to save all email data in DB and it will be reprocessed after there service comes back to normal state.

We need to override this function sendTemplate of class Mandrill_Messages to get data saved in DB, This will be the shortest hack that we can do as we are calling Via the Facade.
MandrillMail::messages()->sendTemplate("cng-forgot-password", $content, $message);

What will be the correct way to do this in Laravel 5.2?

Please help invalid-sender.

help me, im using Laravel 5, but the email didnt sent to destination.
when i print $result[0]["reject_reason"] the result is invalid-senderNULL,

can you help me??

if im using mandrill for sendmail without this class, its work. but i need your class to using mandrill template but the email didnt sent. because the invalid sender.

here is my code.

`namespace App\Services;

use Weblee\Mandrill\Mail;

class WebleeMail{

private function welcomeEmail($userEmail,$userName){
    try{
        $template_name = 'forgot_password';
        $template_content = array(
            array(
                'name' => 'test',
                'content' => 'test'
            )
        );
        $message = array(
            'to' => array(
                array(
                    'email' =>  $userEmail,
                    'name'  =>  $userName,
                    'type'  => 'to'
                )
            )
        );
        $result = \MandrillMail::messages()->sendTemplate($template_name, $template_content, $message);
        if($result[0]["status"]=="sent" AND !$result[0]["reject_reason"]){
            return true;
        }
        else{
            return $result[0]["reject_reason"];
        }
    }
    catch(Exeption $e){
        return false;
    }
}

public function testEmail(){
    echo $this->welcomeEmail("[email protected]","test");
}

}`

Dynamic API key?

Thanks for your work on this wrapper. We've been using it all over the place and it's been perfect.

Is there a way / how would the syntax change if I were instantiating Mandrill with a dynamic API key? It's for a multi-tenant app and I'm wondering if I maybe need to skip this package and interact directly with Mandrill?

Thank you again!
Matt

MandrillMail Facade

Hi,

i installed weblee/mandrill like described in readme.md. if i want to send a mail by facade, i just get the error - Class 'MandrillMail' not found.

i use Laravel 5.2
My controller looks like this:

render($template_name, $template_content, $merge_vars); } } thx for your help!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.