Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

email array to sendgrid

Hi Nathan,

Try running service via service Test tab please. Let's see what's wrong.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

email array to sendgrid

Hi Casey,

Do you need any help with Sendgrid?

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Katya-

I have already tested this many times and it isn't working. So I am not sure what you want me to do here. Please advice. Thanks.

Cheers,

Nathan

casey palmer
Posts: 0
Joined: Tue Mar 18, 2014 6:32 am

email array to sendgrid

No Thank you. I got the features I need through the Mandrill email service.

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Katya-

I have attached a png of a screen shot from the Network Tab in Developer Tools. Does this information help?

Cheers,

Nathan Image

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

email array to sendgrid

Nathan,

I mean testing in service Test tab: Image

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Casey - Thanks for this idea. If we can not get SendGrid to work, I will look into this. Thanks. How did you implement Mandrill into your application?

Cheers,

Nathan

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Katya-

Yeah, testing isn't possible because of Step 2 above. I had to delete the To line. So when I test it shows destination email missing.

Did you see the screenshot I posted below from Developer Tools. That shows exactly what is happening. Please review that screen shot. Thanks.

Cheers,

Nathan

casey palmer
Posts: 0
Joined: Tue Mar 18, 2014 6:32 am

email array to sendgrid

I created the service and then pointed it at the designated mandrill URL. Im using a template and its "https://mandrillapp.com/api/1.0/messa..." (FYI - They have pretty good documentation on their API. Im. not a programmer by trade so you will have to excuse me if i say something incorrectly....

since Im using the template in Mandrill I have 2 request prameters

template_name (if you use template just the name you give it in Mandrill
message (just javascript)

once i added the service to did not map anything.. just put all my code in the "message" parameter... grabbed my info from local storage. since I used an HTML Template in Mandrill they have what is called merge tags.. "|data|" so you can have placeholders in your HTML and replace when you send from your app..

the JavaScript in the message parameter just gets the local storage then put this in the format to send to Mandrill.

for the global merge vars below the "name" is telling it what merge var to look for and the "content' is what to replace it with..

return {
"html": "",
"text": "",
"subject": subject,
"from_email": fsremail,
"from_name": fsrname,
"to": [
{
"email": sendto,
"name": "Spare Parts Coordinator",
"type": "to"
},

Code: Select all

         { 
             "email": fsremail, 
             "name": fsrname, 
             "type": "cc" 
         }, 

         { 
             "email": "a href="mailto:bob@aol.com" rel="nofollow"bob@aol.com/a", 
             "name": "Casey Palmer", 
             "type": "bcc" 
         } 

     ], 

     "global_merge_vars": [ 
         { 
             "name": "fsrname", 
             "content": fsrname, 
         }, 

         { 
             "name": "fsrworkcenter", 
             "content": fsrworkcenter, 
         },  

         { 
             "name": "custname", 
             "content": custname, 
         },  

I hope this helps and did not confuse to much..

Nathan Morin
Posts: 0
Joined: Thu Sep 05, 2013 6:12 am

email array to sendgrid

Thanks. I just signed up for Mandrill and this helps a ton. Thanks for this!

Return to “Issues”