SmtpClientNative Class
Implements:
IDisposable
SMTP Wrapper around System.Net.Email.SmtpClient. Provided here mainly to provide compatibility with existing wwSmtp code and to provide a slightly more user friendly front end interface on a single object.
Westwind.Utilities.InternetTools.SmtpClientNative
Class Members
| Member | Description | |
|---|---|---|
| Constructor | ||
| AddAlternateView | Adds a new Alternate view to the request. Passed from FoxPro which sets up this object.
public void AddAlternateView(AlternateView view)
|
|
| AddHeader | Adds an Smtp header to this email request. Headers are always cleared after a message has been sent or failed.
public void AddHeader(string headerName, string value)
|
|
| AddHeadersFromString | Adds headers from a CR/LF separate string that has key:value header pairs defined.
public void AddHeadersFromString(string headers)
|
|
| Close | Cleans up and closes the connection
public bool Close()
|
|
| Connect | Starts a new SMTP session. Note this doesn't actually open a connection but just configures and sets up the SMTP session. The actual connection is opened only when a message is actually sent
public bool Connect()
|
|
| Dispose |
public void Dispose()
|
|
| GetMessage | Configures the message interface
public MailMessage GetMessage()
|
|
| LoadSmtpClient | Lets you load the actual SMTP client instance prior to use so you can manipulate the actual Smtp instance.
public SmtpClient LoadSmtpClient()
|
|
| LogString | Logs a message to the specified LogFile
public void LogString(string message)
|
|
| SendMail | Fully self contained mail sending method. Sends an email message by connecting and disconnecting from the email server.
public bool SendMail()
|
|
| SendMailAsync | Run mail sending operation on a separate thread and asynchronously Operation does not return any information about completion.
public void SendMailAsync()
|
|
| SendMailRun |
public void SendMailRun()
|
|
| SendMessage | Sends an individual message. Allows sending several messages on the same SMTP session without having to reconnect each time. This version assigns default properties assigned from the main mail object…
public bool SendMessage(string recipient, string ccList,
string bccList)
|
|
Assembly: Westwind.Utilities.dll
