Yea I was wondering if I can maybe format in a bit of a nicer way to where it'd be readable kind of like this:
set tEmail = ##class(%Net.MailMessage).%New()
set html = &html<
set tSC = tEmail.TextData.Write(html)
I know you can't assign embedded HTML to a variable, but I didn't know if there was a different way of doing it.
I think I did find a work around however by using SendGrid and just doing a JSON post to SendGrid that will send my email through the use of a template, but I guess it is just moreso for curiosity sakes now.
Thank you guys! These definitely helped me out.
Thank you for the reply it helped me learn more about public and private variable in intersystems. I decided to go with passing it as a parameter as the easiest route.
Log in or create a new account to continue