I'm trying to send an email with body text given in a string variable, and fail. The line of code I use is:
mailtxt = 'ABCD'
emailext attachLog: false, subject:'$DEFAULT_SUBJECT' , to:'mymail@gmail.com' , replyTo:'$DEFAULT_REPLYTO', body: '''$mailtxt<div>'''
I have tried several combinations of code fences and $, but never get the string value. Any suggestions? Thanks!