Message Formatting
Hello - I am seeing some assistance with formatting an email message my code creates. Code works great btw. I am looking to format the phone number correctly and possibly change the font?
Here is the code in question:
// To email address
var cToAddr = "user@email.org";
// CC email address
var cCCAddr = "";
// Set the subject and body text for the email message
var cSubLine = "New I Am HOPE Award Nomination";
var cBody = "Attached is a new I am HOPE Award Nomination for " + this.getField("Nominee").value + ". " + "Should you have any questions please contact me at " + this.getField("YourPhone").value + " or " + this.getField("YourEmail").value + ".\n\n" + "Thank you" + ",\n\n" + this.getField("YourName").value
// Send the entire PDF as a file attachment on an email
this.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody});
Here is the result of the code:

Anyone know how I could get the phone number to reflect normal like (999) 555-3333? And is there a way for format the text font? Would like the font to be Arial?
Any suggestion or assistance is greatly appreciated.
Thank you ![]()
