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
    • Ninox partner
    • RoSoft_Steven.1
    • 2 yrs agoFri, December 2, 2022 at 8:22 PM UTC
    • Reported - view

    Not sure if you're using the sendEmail() function because 'Email Body'? Isn't it html: normaly? Also have look at these examples: https://forum.ninox.com/t/x2h7fm9/send-emails-with-pictures-in-the-body-and-also-with-attachments-of-your-choice

      • Alan_Cooke
      • 2 yrs agoFri, December 2, 2022 at 8:38 PM UTC
      • Reported - view

      RoSoft_Steven 'EMAIL BODY' Is just a regular text field so should be no need for HTML. The script is under a button.  I will check the links thanks.