How do I format multiple lines in the cMsg: field in email

mdawn50

08-12-2015

Hello,

I'd like to have a multiple line message in the body of the email. I can get the text to be included, but all in one line. How do I get the lines to be separated into several separate lines? Everything except the formatting of the message works fine. Here is my script, that isn't working:

         

     app.mailMsg({

          bUI: false,

          cTo: "",

          cCc: "includedaccounting@fheg.follett.com;",

          cSubject: "True up Complete" + " " + page1.storeInfo.arMajor.rawValue + " " + pages1_3.page1.storeInfo.storeNum.rawValue,

          cMsg: "Hello,"  ;       

                   

          + "The true up for this store has been completed. Please find the links to the checklist and reconciliation below.\n";

          + "Checklist: \n";

          + "Reconciliation: \n";

          + "Thank you, \n";

    }}}}});

Thanks,

MDawn

Accepted Solutions (1)

Accepted Solutions (1)

_Bruce_Robertson

MVP

09-12-2015

Hi,

It looks like you might have a few syntax errors ... or is the forum mucking things up.  You don't want any semi-colons within the mailMsg() argument and you don't wont all those closing braces.  Something like;

    app.mailMsg({

          bUI: false,

          cTo: "",

          cCc: "includedaccounting@fheg.follett.com;",

          cSubject: "True up Complete" + " " + page1.storeInfo.arMajor.rawValue + " " + pages1_3.page1.storeInfo.storeNum.rawValue,

          cMsg: "Hello,"        

          + "The true up for this store has been completed. Please find the links to the checklist and reconciliation below.\n"

          + "Checklist: \n"

          + "Reconciliation: \n"

          + "Thank you, \n"

    });

Regards

Bruce

Answers (1)

Answers (1)