php - Sending a template email from Mandrill using API is empty -


i trying send email using mandrill api json , php through curl. can send text based email , basic html formatting, when try send template php not work. however, when copy , paste json poststring mandril api page (https://mandrillapp.com/api/docs/messages.html) works , sends correctly! missing website adding?

    {     "key": "xxx",     "template_name": "temp-name",     "template_content": [         {             "name": "example name",             "content": "example content"         }     ],     "message": {         "subject": "welcome our website",         "from_email": "xxx@gmail.com",         "from_name": "name",         "to": [             {                 "email": "xxx@gmail.com",                 "name": "name"             }         ],         "important": false,         "track_opens": true,         "merge": true,         "global_merge_vars": [             {                 "name": "merge1",                 "content": "merge1 content"             }         ],         "merge_vars": [             {                 "rcpt": "recipient.email@example.com",                 "vars": [                     {                         "name": "merge2",                         "content": "merge2 content"                     }                 ]             }         ],         "tags": [             "invite-send"         ]     },     "async": false,     "ip_pool": "main pool" } 

i didn't change messaging url "/messages/send.json" "/messages/send-template.json". helps else!


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -