Method for sending email using nlapiCreateTemplateRenderer().

This method can be used to send email template. Here we using nlapiLoadRecord() and nlapiCreateTemplateRenderer(). Below mentioned code for SuiteScript 1.0. In Email Template we using id (#firstname) for getting field values. <html><title></title><p id=”firstname”>Dear #firstname #lastname</p> <ul><li><strong>Email:</strong> #email</li><li><strong>Phone Number:</strong> #phone</li><li><strong>Company Name:</strong> #companyname</li><li><strong>Message:</strong> #message</li></ul></html>