mandrill

Can you add inline base64 encoded image to a Mandrill template?

旧街凉风 提交于 2019-12-10 15:59:36
问题 Does anyone know if and how-to add a Base64 encoded image to a Mandrill Template. I use a Mandrill template to make sure all my emails have the same look and feel and I have a simple and small logo which I'd prefer to add to my template following these recommendations: http://help.mandrill.com/entries/25252978-Tips-for-using-images-in-Mandrill-emails However i'm unsure on where and how to add the neccesary code in my HTML template. Anyone have an idea if it's possible and how-to do it? Thx

Looping through JSON using ASPJSON

陌路散爱 提交于 2019-12-10 11:57:13
问题 I am using Classic ASP and ASPJSON (http://www.aspjson.com/) to try to loop through JSON test data returned via a Mandrill Webhook. This is the sample JSON data - I realise the 2nd block is the same as the first, but I need to use it since when I do this on the live system the webhook data will be returned in batches in a single JSON file / post. { "event":"hard_bounce", "msg":{ "ts":1365109999, "subject":"This an example webhook message", "email":"example.webhook@mandrillapp.com", "sender":

How to generate an array of Multiple recipients using mandrill

我们两清 提交于 2019-12-08 19:17:31
I need to send emails to multiple recipients. The number of recipients will vary depending on the data in the db. Mandrill allows me to only add multiple recipients using an array. Below is what works for multiple recipients //email array that needs to be added to the 'to' key $emailArray = ["example@example.com","test@test.com","hello@test.com","world@test.com"]; $mandrill = new Mandrill('xxxxxxxxxxxxxxx'); $message = array( 'subject' => 'Thanks for signing up', 'from_email' => 'support@test.com', 'to' => array( array( 'email' => 'hello@test.com', 'name' => 'Hello Test' ), array( 'email' =>

Use Mandrill API in Google Apps Script

做~自己de王妃 提交于 2019-12-08 12:48:27
问题 I want to use mandrill email sending api in my google apps script. In google script I have to use JSON code but I am not getting how I will use it. I am very new in Google apps script. var m = new mandrill.Mandrill('XXXXXXXXXXX'); var from_email = "user4@gmail.com"; var to = '[ { "email": "recipient.email@example.com", "name": "Recipient Name" } ],'; // create a variable for the API call parameters var params = { "message": { "from_email":from_email, "to":[{"email":to}], "subject": "Sending a

How to generate an array of Multiple recipients using mandrill

别说谁变了你拦得住时间么 提交于 2019-12-08 08:16:40
问题 I need to send emails to multiple recipients. The number of recipients will vary depending on the data in the db. Mandrill allows me to only add multiple recipients using an array. Below is what works for multiple recipients //email array that needs to be added to the 'to' key $emailArray = ["example@example.com","test@test.com","hello@test.com","world@test.com"]; $mandrill = new Mandrill('xxxxxxxxxxxxxxx'); $message = array( 'subject' => 'Thanks for signing up', 'from_email' => 'support@test

Get “invalid-sender” error in Mandrill when try to send template

送分小仙女□ 提交于 2019-12-07 07:02:18
问题 I have 4 templates but one returns error: "reject_reason": "invalid-sender" . I didn't find this error. in Docs. I have 4 templates in my account and current template has following structure: Template Slug: contact-home From Address : info@somecomp.com From Name: SOME_COMP ++ template as HTML. This is a request I send from API Logs: Full Request { "template_name": "contact-home", "template_content": [ { "name": "example name", "content": "example content" } ], "message": { "dest_mail":

Mandrill Editable Template: mc:edit link href

僤鯓⒐⒋嵵緔 提交于 2019-12-07 05:32:05
问题 I'm trying to use Mandrill templates to send order tracking emails. Using the mc:edit works well for simple text like <span mc:edit="ship_id">ship_id</span><br> I was wondering if there was a way to pass the href link in a variable i.e. tracking_url <a class="mcnButton " title="Track order" href=tracking_url target="_blank" style="font-weight: bold;text-align: center;">Track Order</a> I'm using Djrill for Django and here's the code which sends the email so far, and I'd like to add tracking

How to add params to all links in a mandrill template through API?

人走茶凉 提交于 2019-12-07 04:11:06
问题 I need to add some params to all links from a Mandrill template before sending. For example, in the template there are anchors like <a href="http://google.com>click here</a>" . What I need is to add a string (set of params to every anchor), like this: <a href="http://google.com?param1=value1&param2=value2>click here</a>" , dynamically Is there a way to do it through the API? Something similar to X-MC-GoogleAnalyticsCampaign which adds the utm_campaign param. 回答1: Sure, you can use merge tags

Subject encoding on SmtpClient/MailMessage

戏子无情 提交于 2019-12-07 00:15:01
问题 I am trying to send emails that contain non-ASCII characters using the SmtpClient and MailMessage classes. I am using an external mailing service (MailChimp) and some of my emails have been rejected by their SMTP server. I have contacted them and this is what they replied: It appears the subject line is being Base64 encoded and then Quoted-Printable encoded, which generally should be fine, but one of the characters is being broken across two lines. So when your subject lines are a bit longer,

Where should I put this code in Laravel?

青春壹個敷衍的年華 提交于 2019-12-06 13:01:19
问题 I'm building a site using Laravel4. This is my first Laravel project so I'm still learning how everything fits together and where it should all go. I just added in the Laravel-Mandrill-Request bundle to my site. I'm able to send out emails from a method in my test Controller that looks like this: public function sendMeSomething(){ $payload = array( 'message' => array( 'subject' => 'Greetings!!', 'from_email' => 'xxxx@yyyy.com', 'to' => array( array('email'=>'aaaa@bbbb.com'), array('email' =>