SiMX Help‎ > ‎The Target Platform‎ > ‎Objects‎ > ‎TARGET Object‎ > ‎target.mail‎ > ‎

Send


Platform Objects


Description

Sends an e-mail message.  


Syntax


trg.mail.Send from, to, subject, body, HTML

from (input) - The from e-mail address
to (input) - The to e-mail address
subject (input) - the text of the subject
body (input) - the text of the body of the e-mail
HTML - boolean true/false input, whether the body of the e-mail is in HTML or not.


Return value


This function does not return a value.

Sample

'---------- Start ----------
Function Start
 
trg.mail.Connect "imap", "simx02", "support@simx.com", "test2"
trg.mail.Send "support@simx.com", "test@simx.com", "Sample", "This is a sample e-mail.", false

End Function

See also


Platform Objects and Methods
target.mail.ReplacePath()
target.mail.SetAttachments()
target.mail