Smtp Object : QuickSend Method |
If Server is specified, login is attempted before the message is sent, and the session terminates after the message is sent. A ptConnected error is thrown if already logged in.
If Server is not specified, there must an active session and the session persists after the message is sent. This allows multiple messages to be sent without the overhead of logging in and out for each message. A ptNotConnected error is thrown if not already logged in.
This method allows you to send complex messages with just one line of code.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):