aspNetEmail

EmailMessage.ThrowException Property

If set to true, this property will throw internal exceptions back to the calling program.

public bool ThrowException {get; set;}

Remarks

If set to False, aspNetEmail will suppress any exceptions encountered. By default, this value is true.

Example

[C#]
		EmailMessage msg = new EmailMessage();
		msg.Server = "Mail1.MyCompany.com";
		msg.FromAddress = "me@MyCompany.com";
		msg.To = "you@YourCompany.com";
		msg.Subject = "Daily Newsletter";
		msg.Body = "Here is our daily newsletter.....";
		msg.ThrowException = false;
		msg.Send();
		
[Visual Basic]
		Dim msg As New EmailMessage()
		msg.Server = "Mail1.MyCompany.com"
		msg.FromAddress = "me@MyCompany.com"
		msg.To = "you@YourCompany.com"
		msg.Subject = "Daily Newsletter"
		msg.Body = "Here is our daily newsletter....."
		msg.ThrowException = False
		msg.Send()
		

See Also

EmailMessage Class | aspNetEmail Namespace