Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Sendgrid multiple items in message body

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Sendgrid multiple items in message body

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

Sendgrid multiple items in message body

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

cheers

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Sendgrid multiple items in message body

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

Sendgrid multiple items in message body

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

Deon
Posts: 0
Joined: Sun Jun 30, 2013 6:00 am

Sendgrid multiple items in message body

Hi Michael

Thanks a lot. Appreciate it.

Rgds

Calvin Cox
Posts: 0
Joined: Wed Nov 06, 2013 7:46 pm

Sendgrid multiple items in message body

Hi Michael,

Any luck sending HTML formatted email using sendgrid?

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

Sendgrid multiple items in message body

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

Calvin Cox
Posts: 0
Joined: Wed Nov 06, 2013 7:46 pm

Sendgrid multiple items in message body

Hi Michael,

Thank you for your quick response.

Return to “Issues”