ComponentSpace Trace Listeners Class Library Reference

SmtpTraceListener Constructor (String)

Initializes a new instance of the SmtpTraceListener using the supplied initialization data.

[Visual Basic]
Overloads Public Sub New( _
   ByVal initializeData As String _
)
[C#]
public SmtpTraceListener(
   string initializeData
);

Parameters

initializeData
The initialization data.

Remarks

The initialization data consists of zero of more comma separated properties. The property names and valid values are: fromAddress is the from email address eg. fromAddress="me@mycompany.com"; toAddress is the to email address eg. toAddress="trace@mycompany.com"; subject is the subject line eg. subject="trace". mailServer is the name of the SMTP mail server eg. subject="mail.mycompany.com".

String values may either be enclosed in "double quotation marks" or 'single quotation marks' using XML entity references where required.

The toAddress is not optional. The fromAddress defaults to trace@trace.com. The subject defaults to trace. The mailServer defaults to using the local SMTP mail server.

This constructor receives the initialization data configured in the application's XML configuration file.

See Also

SmtpTraceListener Class | ComponentSpace.TraceListeners Namespace | SmtpTraceListener Constructor Overload List