aspNetEmail

EmailMessage.FireandForget Method 

A OneWay method that executes a .Send() method asynchronously on the EmailMessage object.

public static void FireandForget(
   EmailMessage emailMessage
);

Remarks

This method does not throw any exceptions and is meant as a Fire-and-Forget method, where it is unimportant to find out if any exceptions occurred or if/when an email message was delivered.

Example

[C#]
            //load email message properties from the .config file.
            EmailMessage m = new EmailMessage( true, false );
            m.Subject="testing fire and forget";
            m.Body = "this email message was sent using FireandForget()";			
            
            EmailMessage.FireandForget( m );
            
            
[Visual Basic]
            'load email message properties from the .config file.
            Dim m As New EmailMessage(True, False)
            m.Subject = "testing fire and forget"
            m.Body = "this email message was sent using FireandForget()"
            
            EmailMessage.FireandForget(m)
            

See Also

EmailMessage Class | aspNetEmail Namespace