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
public bool Send(
   SmtpServer smtpserver
public: bool Send(
   SmtpServer* smtpserver
public function Send(
   SmtpServer smtpserver
): bool;


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