0

Formatting an email

This is the relevant portion of the email code I am trying to fix.  Issue is where the Bod of the email is placed.

I simply cannot figure out how to get it 2 lines up from the Please refer to attached.  At the moment it's appended to the end of the ....ENGINEERS(S)) field.  I'm trying to get it to appear where I have inserted the text <I want it here>.  How does one format the " " and + characters correctly to add new lines?  That is where I am going wrong.

subject: "A new Task has been added for: " + concat('ASSIGNED ENGINEERS'.'ASSIGNED ENGINEER(S)') + " " + 'TASK TITLE' + " " + LOCATION,
    text: "Att: " + concat('ASSIGNED ENGINEERS'.'ASSIGNED ENGINEER(S)') + " " + " + ",
    'EMAIL BODY': "
" + " <I want it here>
" + "
" + "Please refer to the attached" + "

" + "Kind Regards" + "

" + userName() + " " + "alan.cooke@my email address",
    attachments: file(this, myName)
})

2 replies

null

Content aside

  • 1 yr agoLast active
  • 2Replies
  • 162Views
  • 2 Following