DotNetOpenMail 0.5.7 (beta)

EmailMessage.Send Method 

Send out the email via the smtp server given. If the SMTP server throws an error, an SmtpException will be thrown. All other exceptions will be MailExceptions

[Visual Basic]
Public Function Send( _ 
   ByVal smtpserver As SmtpServer _ 
) As Boolean
[C#]
public bool Send(
   SmtpServer smtpserver
);
[C++]
public: bool Send(
   SmtpServer* smtpserver
);
[JScript]
public function Send(
   SmtpServer smtpserver
): bool;

Parameters

smtpserver
The outgoing SMTP server.

Return Value

true if sent successfully. (note that this will not currently return false, but in the future a false value may be used)

See Also

EmailMessage Class | DotNetOpenMail Namespace