Parameters:
SmtpHost | The smtp (mail server) host name or IP address. |
SmtpPort | The smtp port (usually 25). |
SmtpEncrypt | Set to false, TLS, or SSL. When set to:
You may need to consult your e-mail administrator to determine which encryption flag should be used. |
SmtpUsername | The user name for the smtp account. |
SmtpPassword | The password for the smtp account. |
MailTo | A comma-separated list of e-mail recipients. |
MailFrom | The user name from which the e-mail is to be sent. |
Subject | The subject of the e-mail. |
Body | The text of the e-mail. |
Returns:
This function does not return a value.
Example:
function mailMe()
host = "mail.bmc.com"
port = "25"
encrypt = "false"
user = ""
pass = ""
toAddr = "user@bmc.com"
fromAddr = "root@mvcmdemo.bmc.com"
subject = "Test"
body = "Hello"
email(host, port, encrypt, user, pass, toAddr, fromAddr, subject, body)
return 0
host = "mail.bmc.com"
port = "25"
encrypt = "false"
user = ""
pass = ""
toAddr = "user@bmc.com"
fromAddr = "root@mvcmdemo.bmc.com"
subject = "Test"
body = "Hello"
email(host, port, encrypt, user, pass, toAddr, fromAddr, subject, body)
return 0
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*