## The `Sendmessage' method

Argument: None
Result: Integer Scalar

Valid for: SendMail

Once you have set up the properties of an e-mail using properties of the SendMail object, you send it by calling the `SendMessage` method (you must be connected to the SMTP server to do this). This method takes no argument; it returns an error code as follows: 0 = No error, 1 = Host not found, 2 = Authentication error, 3 = General or comms error, 4 = Attachment not found, 4 = Incomplete header (e.g. `'to'` property not set), 5 = Recipient not found.

Topic: APLX Help : System Classes : Methods : Sendmessage

[ Previous | Next | Contents | Index ]