How to Format Sendgrid Emails
Hello,
Using Sendgrid, I applied the following Javascript (which I found in this forum) in order to combine multiple form fields into the main Text section of the email:
var text = "";
//Here you need to fill all fields you want send to email.
text += "EventTitle= " + Apperyio("EventTitle").val() + "";
text += "Company= " + Apperyio("Company").val() + "";
text += "first_Name= " + Apperyio("first_Name").val() + "";
text += "last_Name= " + Apperyio("last_Name").val() + "";
return text;
However, the email arrives unformatted as follows:
EventTitle= XYZ EventCompany= ABC Companyfirst_Name= Johnlast_Name= Doe
Instead, I would like it to be formatted as follows:
EventTitle= XYZ Event
Company= ABC Company
first_Name= John
last_Name= Doe
Thank you in advance!