To open up the user's default email client in CET (like a mailto link in a web browser) use any of the following methods in cm/win/email.cm:
public bool sendEmail(str subject, str text, str to, str[] cc=null, Url[] attachments=null) public bool sendEmail(str subject, str text, str[] to, str[] cc=null, Url[] attachments=null)l
To send an email silently without any dialog, use the following methods:
public bool silentSendEmail(str subject, str text, str to, str[] cc=null, Url[] attachments=null) public bool silentSendEmail(str subject, str text, str[] to, str[] cc=null, Url[] attachments=null)
All these methods call the base method:
public bool sendEmail(str subject, str text, str->Object args)
which the args
map can handle the following types of arguments:
- str/str[ ] to
- str/str[ ] cc
- Url[ ] attachments
- Url attachment
- bool notrace=false
- bool noui=false (silent)
- bool simulate=false
- bool syncOutputTrace=false
- Url logDir
Comments
0 comments
Please sign in to leave a comment.