Page 1 of 1

Sendgrid multiple items in message body

Posted: Thu Oct 03, 2013 3:59 am
by Deon

Hi

I have seen a post to send concatenated values from local storage as one mapping to the sendgrid message mapping.

This is all good but how would I send a grid with content formatted as an invoice? Is this possible?

Thank you


Sendgrid multiple items in message body

Posted: Thu Oct 03, 2013 4:14 am
by maxkatz

I believe SendGrid allows to send HTML emails.. check their APIs.


Sendgrid multiple items in message body

Posted: Thu Oct 31, 2013 6:56 pm
by Michael4771079

Hi Deon,
hope you don't mind me asking, did you manage to send you concatenated values or HTML with sendgrid.

cheers


Sendgrid multiple items in message body

Posted: Fri Nov 01, 2013 2:34 am
by Deon

Hi Michael

No unfortunately I have been under pressure to get the app out and I ended up concatenating the values of my Stored variables and page components.
This is not ideal but was a quick alternative.

var str1 = "New Reservation Enquiry from - Name: ";
var n = str1.concat(localStorage.getItem("Name"), ', Surname: ', localStorage.getItem("Surname"), ', Phone: ', localStorage.getItem("Mobile"),', Email: ', localStorage.getItem("Email"),' Arrival: ', Appery("R_Date").getAttr("defaultDateValue"), ' Nights: ', Appery('R_Nights').val(), ' Rooms: ', Appery('R_Rooms').val(), ' Adults: ', Appery('R_Adults').val(), ' Children: ', Appery('R_Children').val());
localStorage.setItem('txtMessage', n);

Sorry I could not be of more help. I will have to explore the HTML route at some stage and will update this thread if successful.


Sendgrid multiple items in message body

Posted: Fri Nov 01, 2013 11:56 am
by Michael4771079

Thanks Deon for the reply and code, I have a question on sendgrid support, it will take about a week to be answered, if I get anything good I will post here

cheers


Sendgrid multiple items in message body

Posted: Fri Nov 01, 2013 12:21 pm
by Deon

Hi Michael

Thanks a lot. Appreciate it.

Rgds


Sendgrid multiple items in message body

Posted: Tue Nov 26, 2013 7:20 am
by Calvin Cox

Hi Michael,

Any luck sending HTML formatted email using sendgrid?


Sendgrid multiple items in message body

Posted: Tue Nov 26, 2013 12:32 pm
by Michael4771079

Hi Calvin,
no, I did not get a response from sendgrid support,
I used localstorage variables to construct the message I required.


Sendgrid multiple items in message body

Posted: Tue Nov 26, 2013 2:43 pm
by Calvin Cox

Hi Michael,

Thank you for your quick response.