Skip to main content

Utils.Email

class Utils.Email

Method Inventory

Methods

classmethod ConnectToMailServer(servername As %String = "mail.iscinternal.com", port As %Integer = 25) as %Net.SMTP
Set up a %Net.SMTP connection to the given server on the given port
classmethod CreateBasicEmail(to As %String = "", from As %String = "", subject As %String = "", body As %String = "", isHTML As %Boolean = 0) as %Net.MailMessage
Set up a %Net.MailMessage with the given properties. To send to multiple addresses, specify a semicolon-separated string of email addresses, for example "email1@intersystems.com;email2@intersystems.com"
classmethod SendHTMLEmail(to As %String = "", from As %String = "", subject As %String = "", body As %String = "", verbose As %Integer = 1) as %Status
classmethod SendPlainTextEmail(to As %String = "", from As %String = "", subject As %String = "", body As %String = "", verbose As %Integer = 1) as %Status
Send a plain-text email using the default mail server. To send to multiple addresses, specify a semicolon-separated string of email addresses, for example "email1@intersystems.com;email2@intersystems.com"
FeedbackOpens in a new tab