Vanguard Software
Forecasting & Planning Solutions
Home Products Solutions Services Customers Partners Company
 
Applying science to business management

contents.gifindex.gifprev1.gifnext1.gif

mail

Format: mail( message, recipients, subject, sender )

Arguments: [any] message Message you wish to send; can include any numeric or text value including lists

[text] recipients Internet mail address for the desired recipient(s)

(text) subject Optional message subject; default = "None"

(text) sender Optional Internet mail address for the sender; default = value set in the server properties page

Returns: [any] The value of message

Description: Mail sends an e-mail message to any Internet mail recipient. This primitive can be used in applications that monitor real-time data and notify key individuals of special situations.

If message is a numeric value, it is translated into a text string as it would be displayed. If message is a list, all elements in the list are translated separately and separated by commas. If message is a simple text string, the text is sent without translation.

The argument recipients should include the desired recipient's e-mail address in standard Internet mail format (e.g.,  name@domain.com)  If you want to send the message to more than one recipient, include a list of valid recipient addresses.

Your mail server domain name is set in the DecisionScript Server software setup or in the E-Mail Options dialog box.

Examples: mail("Hi there!","John.Doe@domain.com")

  = mails the message Hi there! to John Doe at domain.com

mail(read("Report.txt"),"John.Doe@domain.com","Status")

  = mails the contents of the file Report.txt

See Also: readhttp, dialog

  Demand Planning  |  Financial Forecasting
Forecasting Software  |  Strategic Planning Software  |  Decision Tree Software
Decision Support Software  |  Expert System Software  |  Online Surveys

Contact Us  |  Terms of Use  |  Privacy Policy  |  Site Map
Vanguard Software
© 2011 Vanguard Software Corporation
Print this page   Email this page to a friend