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 tEmail.IsHTML=1

set html = &html<



<b>Hello, World!</b>




set tSC = tEmail.TextData.Write(html)

set tSC=..Adapater.SendMail(tEmail)

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 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.

Jordan has no followers yet.
Jordan has not followed anybody yet.
Global Masters badges:
Jordan has no Global Masters badges yet.