Dart Smtp, Pop, Imap Controls
QuickSend Method
Contains one or more recipient addresses separated by commas.
Contains the email address of the message originator.
Specifies the Subject of the message.
Contains the message text.
Contains one or more attachment file paths (separated by semicolons) to be sent with the message.
Specifies the name of the server to connect to.
Description
Build and send a message.
Syntax
Visual Basic
Public Sub QuickSend( _
   ByVal To As String, _
   ByVal From As String, _
   Optional ByVal Subject As String, _
   Optional ByVal Text As String, _
   Optional ByVal Attachments As String, _
   Optional ByVal Server As String _
) 
Parameters
To
Contains one or more recipient addresses separated by commas.
From
Contains the email address of the message originator.
Subject
Specifies the Subject of the message.
Text
Contains the message text.
Attachments
Contains one or more attachment file paths (separated by semicolons) to be sent with the message.
Server
Specifies the name of the server to connect to.
Remarks

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.

Error Codes

This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):

See Also

Smtp Object  | Smtp Members


PowerTCP Mail for ActiveX Documentation Version 2.13
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic