Dart.Mail Namespace > Smtp Class > Send Method : Send(Stream,String,String) Method |
Public Overloads Function Send( _ ByVal encodedMessage As Stream, _ ByVal fromAddress As String, _ ByVal recipientAddresses As String _ ) As SmtpResult
Dim instance As Smtp Dim encodedMessage As Stream Dim fromAddress As String Dim recipientAddresses As String Dim value As SmtpResult value = instance.Send(encodedMessage, fromAddress, recipientAddresses)
public SmtpResult Send( Stream encodedMessage, string fromAddress, string recipientAddresses )
public: SmtpResult* Send( Stream* encodedMessage, string* fromAddress, string* recipientAddresses )
public: SmtpResult^ Send( Stream^ encodedMessage, String^ fromAddress, String^ recipientAddresses )
Exception | Description |
---|---|
ProtocolException | Bad SMTP protocol response received from server. |
System.Net.Sockets.SocketException | A socket failure. |
System.FormatException | Bad address format. |
This method is identical to Send(MailMessage,String,String), except the message has already been encoded.
Alternatively, use Send(String,String,String,String) to send a basic text message, Send(MailMessage) to use the mail addresses in the message, or Send(MailMessage,String,String) to send MailMessage using the specified envelope.
If an email address domain name contains non-ASCII characters, System.Globalization.IdnMapping.GetAscii(System.String) will be used to convert it to a valid format.
This method automatically calls Connect and Authenticate if not connected to the server and SendDirectToMx is false.