Property | Type | Description | |
---|---|---|---|
AlternateText | string | ||
AlternateTextContentType | string | ||
AttachmentList | List |
||
Attachments | string | ||
BCC | string | ||
CC | string | ||
CharacterEncoding | string | ||
ContentType | string | ||
Encoding | |||
Error | bool | ||
ErrorMessage | string | ||
HandleExceptions | bool | ||
Headers | string>.Dictionary | ||
LogFile | string | ||
MailServer | string | ||
Message | string | ||
Password | string | ||
Priority | string | ||
Recipient | string | ||
ReplyTo | string | ||
ReturnReceipt | bool | ||
SenderEmail | string | ||
SenderName | string | ||
ServerPort | int | ||
Subject | string | ||
Timeout | int | ||
UseSsl | bool | ||
UserAgent | string | ||
Username | string |
Property | Type | Description | |
---|---|---|---|
AlternateViews | List |
Method | Description | |
---|---|---|
AddAlternateView ( System.Net.Mail.AlternateView view ) : void |
Adds a new Alternate view to the request. Passed from FoxPro which sets up this object.
|
|
AddHeader ( string headerName, string value ) : void |
Adds an Smtp header to this email request. Headers are always cleared after a message has been sent or failed.
|
|
AddHeadersFromString ( string headers ) : void |
Adds headers from a CR/LF separate string that has key:value header pairs defined.
|
|
Close ( ) : bool |
Cleans up and closes the connection
|
|
Connect ( ) : bool |
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
|
|
Dispose ( ) : void | ||
LoadSmtpClient ( ) : |
Lets you load the actual SMTP client instance prior to use so you can manipulate the actual Smtp instance.
|
|
SendMail ( ) : bool |
Fully self contained mail sending method. Sends an email message by connecting and disconnecting from the email server.
|
|
SendMailAsync ( ) : void |
Run mail sending operation on a separate thread and asynchronously Operation does not return any information about completion.
|
|
SendMessage ( string recipient, string ccList, string bccList ) : bool |
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 and allows overriding only of recipients Call after Connect() has been called and call Close() to close the connection afterwards
|
Method | Description | |
---|---|---|
GetMessage ( ) : |
Configures the message interface
|
|
LogString ( string message ) : void |
Logs a message to the specified LogFile
|
|
SendMailRun ( ) : void |
Method | Description | |
---|---|---|
AssignMailAddresses ( MailAddressCollection address, string recipients ) : void |
Assigns mail addresses from a string or comma delimited string list. Facilitates
|
|
GetEmailFromFullAddress ( string fullEmail ) : string |
Strips out just the email address from a full email address that might contain a display name in the format of: "Web Monitor" <[email protected]>
|
|
SetError ( string errorMessage ) : void |
Internally used to set errors
|
public AddAlternateView ( System.Net.Mail.AlternateView view ) : void | ||
view | System.Net.Mail.AlternateView | |
return | void |
public AddHeader ( string headerName, string value ) : void | ||
headerName | string | |
value | string | |
return | void |
public AddHeadersFromString ( string headers ) : void | ||
headers | string | |
return | void |
protected GetMessage ( ) : |
||
return |
public LoadSmtpClient ( ) : |
||
return |
protected LogString ( string message ) : void | ||
message | string | |
return | void |
public SendMessage ( string recipient, string ccList, string bccList ) : bool | ||
recipient | string | |
ccList | string | |
bccList | string | |
return | bool |