Joe Schra · Jan 19, 2021 go to post

Thanks Vice, that does seem to be the problem. I changed the security on the specific file and it did flow through.

Joe Schra · Nov 20, 2017 go to post

Jeffrey this works!

I will be making variations on this as we have 49 unique locations to populate automatically in the body of the email message.  However, my test went through.  To come full circle, if anyone else is looking for something like this... We are sending out "How are we doing surveys" after a clinical appointment with our Hospital and outpatient services. Based on a patient email, and the location in which they were seen, they will receive the survey (embedded in a URL).

Thanks!

Joe Schra · Nov 17, 2017 go to post

Thanks for your follow up Jeff! Hopefully today I can set this up in our TEST environment, I'll let you know the outcome.

Joe Schra · Nov 17, 2017 go to post

Thanks Mark,

I am just getting started with Ensemble so forgive me for being naïve...excited to give this a try! 

Joe Schra · Nov 16, 2017 go to post

When I am looking at the example

ClassMethodCreateTextMessage()As%Net.MailMessage
{
Setmsg=##class(%Net.MailMessage).%New()
setmsg.From="test@test.com"
Domsg.To.Insert("xxx@xxx.com")
Domsg.Cc.Insert("yyy@yyy.com")
Domsg.Bcc.Insert("zzz@zzz.com")
Setmsg.Subject="subject line here"
Setmsg.IsBinary=0
Setmsg.IsHTML=0
Domsg.TextData.Write("This is the message.")
Quitmsg
}

My biggest hurdle is finding a way for the message to insert PID-13-4 (email address) into the "Domsg.To.Insert___"

Anyone have any thoughts?

Joe Schra · Nov 16, 2017 go to post

When I am looking at the example

ClassMethodCreateTextMessage()As%Net.MailMessage
{
Setmsg=##class(%Net.MailMessage).%New()
setmsg.From="test@test.com"
Domsg.To.Insert("xxx@xxx.com")
Domsg.Cc.Insert("yyy@yyy.com")
Domsg.Bcc.Insert("zzz@zzz.com")
Setmsg.Subject="subject line here"
Setmsg.IsBinary=0
Setmsg.IsHTML=0
Domsg.TextData.Write("This is the message.")
Quitmsg
}

My biggest hurdle is finding a way for the message to insert PID-13-4 (email address) into the "Domsg.To.Insert___"

Anyone have any thoughts?

Joe Schra · Oct 25, 2017 go to post

Great thanks Jeffrey! I will take a look at the overview thank you for the direction.