PowerTCP Mail for .NET
SmtpEventArgs Class
Members  See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace : SmtpEventArgs Class




This class is passed into the Smtp.EndSend event and provides data for this event.

Object Model

SmtpEventArgs ClassSmtpResult Class

Syntax

Visual Basic (Declaration) 
Public Class SmtpEventArgs 
   Inherits System.EventArgs
Visual Basic (Usage)Copy Code
Dim instance As SmtpEventArgs
C# 
public class SmtpEventArgs : System.EventArgs 
Managed Extensions for C++ 
public __gc class SmtpEventArgs : public System.EventArgs 
C++/CLI 
public ref class SmtpEventArgs : public System.EventArgs 

Remarks

An SmtpEventArgs object is passed into the Smtp.EndSend event after an email message has been sent asynchronously, containing data about the sent message. This data will include a SmtpResult object, containing the result of the SMTP operation.

If your code causes an exception, it would be returned to the handling event without you seeing it. To preclude such a condition, you should ALWAYS use a try/catch block around your event-handling code.

For more information on implementing and handling events using PowerTCP.NET, see Events in PowerTCP.

Inheritance Hierarchy

System.Object
   System.EventArgs
      Dart.PowerTCP.Mail.SmtpEventArgs

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.