Tuesday, 9 September 2014


Author : Bakul Damodariya
Occupation : Web Developer / Web Advisor 
gtalk : bacool.dentaweb
skype : bacool.dentaweb
Contact: (+91) 989-803-4684

WOW ...

    What an experience of implementing MANDRILL to send Emails   .... 

Hii Friends , 
            Thanks for giving me a chance to teach you MANDRILL to send Emails  in my own language and style . 
   I am a web developer like you all, so i already know where you will have doubts and how i have to resolve it . 

 Here we go ... 
##### Mail Using Mandrill  ######

require 'Mandrill.php';
try {

$mandrill = new Mandrill('dsfdsfsc_Y0CApHxwerwereaJsCcAf82eA');
$message = array(
'html' => 'mail body',
'text' => 'text message',
'subject' => 'your sublect line',
'from_email' => 'bacool.dentaweb@gmail.com',
'from_name' => 'From Name : Bakul Damodariya',
'to' => array(
array(
'email' => 'to_email@receiversdomain.com',
'name' => 'Inquiry',
'type' => 'to'
)
),
'headers' => array('Reply-To' => 'noreply@bakuldamodariya.com')
);
$async = false;
$result = $mandrill->messages->send($message, $async);
print_r($result);
} catch(Mandrill_Error $e) {
// Mandrill errors are thrown as exceptions
echo 'A mandrill error occurred: ' . get_class($e) . ' - ' . $e->getMessage();
// A mandrill error occurred: Mandrill_Unknown_Subaccount - No subaccount exists with the id
'customer-123'
throw $e;
}



  • This is very simple format of Mandrill mail , we only need to add credentials , and YES API KEY .


  • we can easily get API key by registering and creating an account with Mandrill,


  • for Source files (Mandrill.php and other supported files) Please contact Author.
##########################################



WE CAN IMPLEMENT MANDRILL MAIL FOR YOU @ $ 20,
CONTACT ME FOR MANDRILL OR PHP RELATED WORK . . . !

Lots of Love ,
Author : Bakul Damodariya
Occupation : Web Developer / Web Advisor 
gtalk : bacool.dentaweb
skype : bacool.dentaweb
Contact: (+91) 989-803-4684




==== DONATE / BUY ====


Donate

No comments:

Post a Comment