File.OpenEmail

File.OpenEmail ( 

string EmailAddress,

number WindowMode = SW_SHOWNORMAL )

Example 1

File.OpenEmail("[email protected]?subject=I need help", SW_MAXIMIZE);

Opens the user's default email client, with "[email protected]" in the To: field and "I need help" in the subject line, and maximizes the email client's program window.

Example 2

File.OpenEmail("[email protected]");

Opens the user's default email client, with "[email protected]" in the To: field. The email program's window is opened normally (not minimized or maximized).

Example 3

File.OpenEmail("[email protected]?subject=Thanks%21");

Sends an email to [email protected], using the user's default email client, with "Thanks!" automatically entered in the subject line.

Note: The exclamation mark is URL encoded as %21 because ! is a special character in URLs.

See also:  Related Actions