mandrill

Simple php function to send an email with Mandrill

十年热恋 提交于 2019-11-28 04:22:57
What is the easiest way to send an email via Mailchimp's Mandrill service (using the API). Here's the send method: https://mandrillapp.com/api/docs/messages.html#method=send Here's the API wrapper: https://bitbucket.org/mailchimp/mandrill-api-php/src/fe07e22a703314a51f1ab0804018ed32286a9504/src?at=master But I can't figure out how to make an PHP function that will send and email via Mandrill. Can anyone help? Kaitlin We also have an official API wrapper for PHP, which is available on Bitbucket or via Packagist , which wraps the Mandrill API for you. If your Mandrill API key is stored as an

error in send email using Mandrill (php)

十年热恋 提交于 2019-11-27 16:26:36
问题 I am using mandrill api for the first time. I am using following code. I have Mandrill API Key with me. <?php try { $mandrill = new Mandrill('YOUR_API_KEY'); $message = array( 'html' => '<p>Example HTML content</p>', 'text' => 'Example text content', 'subject' => 'example subject', 'from_email' => 'message.from_email@example.com', 'from_name' => 'Example Name', 'to' => array( array( 'email' => 'recipient.email@example.com', 'name' => 'Recipient Name' ) ), 'headers' => array('Reply-To' =>

Mandrill “reject_reason”: “invalid-sender”

你。 提交于 2019-11-27 07:35:23
问题 I'm trying to send emails using mandrill email service but I get the following error Full Response [ { "email": "someemail@somedomain.com", "status": "rejected", "_id": "b814c2974594466cba9c904c54dca6c6", "reject_reason": "invalid-sender" } ] Apart from the above error there is no more details about it. we are using .net to send emails with Mandrill SMTP settings. 回答1: It'd be useful to see the call/email that's being sent. That error means that there's an invalid sender, as indicated in the

Simple php function to send an email with Mandrill

流过昼夜 提交于 2019-11-27 00:27:55
问题 What is the easiest way to send an email via Mailchimp's Mandrill service (using the API). Here's the send method: https://mandrillapp.com/api/docs/messages.html#method=send Here's the API wrapper: https://bitbucket.org/mailchimp/mandrill-api-php/src/fe07e22a703314a51f1ab0804018ed32286a9504/src?at=master But I can't figure out how to make an PHP function that will send and email via Mandrill. Can anyone help? 回答1: We also have an official API wrapper for PHP, which is available on Bitbucket

PHP - SSL certificate error: unable to get local issuer certificate

落花浮王杯 提交于 2019-11-25 22:22:37
问题 I\'m running PHP Version 5.6.3 as part of XAMPP on Windows 7. When I try to use the Mandrill API, I\'m getting the following error: Uncaught exception \'Mandrill_HttpError\' with message \'API call to messages/send-template failed: SSL certificate problem: unable to get local issuer certificate\' I already tried everything I read on StackOverflow, including adding the following to the php.ini file: curl.cainfo = \"C:\\xampp\\php\\cacert.pem\" And ofcourse downloaded to that location the