Tuesday, 25 April 2017

How to get the value from Mandrill to html pages?

I am using node.js mandrill email verification . i got the response link but i can't print the current value in dynamically ?

    mandrill_client = new mandrill.Mandrill('YOUR_API_KEY');
var names = " Sample Names";
var template_name = "example template_name";
var template_content = [{
        "name": "example name",
        "content": "example content"
    }];
var message = {
    "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": [{
            "email": "recipient.email@example.com",
            "name": "Recipient Name",
            "type": "to"
        }],
    "headers": {
        "Reply-To": "message.reply@example.com"
    },

Here i printed a sample name .. that name is not getting. that is printing only . How can i solve this one ?



via Kiran KB

No comments:

Post a Comment