email (string To, string From, string Subject, string Body, string Server, string User, string Password): int

Sends an email to a given recipient. Useful for receiving emails when Zorro opens or closes a trade or when your account was wiped.

Parameters:

To - Recipient address as required by the server. Usually in angular brackets like "<me@myself.com>".
From - Sender address, usually in angular brackets.
Subject - Subject line of the email.
Body - Text content of the email.
Server - SMTP/SMTPS server with optional port address, f.i. "smtp://smtp.1und1.de" or "smtps://smtp.gmail.com:465".
User - Login name for the SMTP server, often identical to the sender address.
Passwort - Login password for the SMTP server.

Returns:

0 if the email could not be sent, otherwise nonzero.

Remarks:

EExample:

void main()
{
  string To = "<me@myself.org>";
  string From = "<zorro_alert@gmail.com>";
  string Subject = "Zorro Message";
  string Body = "Zorro has sent you a message!";
  string Server = "smtps://smtp.gmail.com:465";
  string User = "zorro_alert@gmail.com";
  string Password = "zorros_password";
  email(To,From,Subject,Body,Server,User,Password);
}

See also:

HTTP functions, FTP functions ► latest version online