Mandrill doesn't pass variables to email

Viewed 10

I'm using Postman to make requests to MailChimp and Mandrill to, if everything goes well, implement email triggering in .net core, I've been trying for some time to pass variables to the email but I'm not getting it, does anyone know how to solve it?

this is the result of the email generated for me:

enter image description here

Using the following code in postman:

{
"key": "mykey",
"template_name": "mytemplatename",
"global_merge_vars": [
    {
        "name": "title",
        "content": "Parabéns!"
    },
    {
        "name": "user_name",
        "content": "dear_prudence"
    }
],
"template_content": [
    {
        "name": "section_title",
        "content": "titulo"
    },
    {
        "name": "section_content",
        "content": "conteúdo da seção"
    }
],
"message": {
    "subject": "Teste email do MailChimp",
    "X-MC-MergeVars": {
        "website": "example.com",
        "title": "John",
        "NMPROFNAL": "DR. EVANDRO"
    },
    "from_email": "xyz@mail.com",
    "to": [
        {
            "email": "xyz@mail.com"
        }
    ]
},
"merge-fields": {
    "title": "Bob Esponja",
    "LNAME": "Calça Quadrada",
    "WEBSITE": "website",
    "NMPROFNAL": "DR. EVANDRO",
    "CONTENT_TEXT": "Teste de Merge Content",
    "TITLE": "Titulo da Página"
}

}

remembering that I'm trying to use postman to do this and in the future convert this code to .Net Core

0 Answers
Related