Method | Description | |
---|---|---|
Dispose ( ) : void |
Releases all the resources used by the Mail object.
|
|
Mail ( ) : System |
Initializes a new instance of the Mail class.
|
|
Mail ( string from ) : System |
Initializes a new instance of the Mail class.
|
|
Mail ( string from, string toRecipients ) : System |
Initializes a new instance of the Mail class.
|
|
Mail ( string from, string toRecipients, string smtpServer ) : System |
Initializes a new instance of the Mail class.
|
|
Send ( ) : void |
Send the Mail message with Attachments to the ToRecipients, CcRecipients and BccRecipients using the specified SmtpServer.
|
|
Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer ) : void |
Sends a Mail message.
|
|
Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string attachments, string smtpServer ) : void |
Sends a Mail message.
|
|
Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, |
Sends a secure Mail message.
|
|
Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, |
Sends a secure Mail message.
|
|
Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, string password ) : void |
Sends a secure Mail message.
|
|
Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, string password, bool enableSSL ) : void |
Sends a secure Mail message.
|
|
Send ( string from, string toRecipients, string ccRecipients, string bccRecipients, string subject, string body, bool isBodyHtml, string smtpServer ) : void |
Sends a Mail message.
|
|
Send ( string from, string toRecipients, string ccRecipients, string bccRecipients, string subject, string body, bool isBodyHtml, string attachments, string smtpServer ) : void |
Sends a Mail message.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the Mail object and optionally releases the managed resources.
|
Method | Description | |
---|---|---|
ApplySecuritySettings ( ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
return | void |
public Mail ( string from ) : System | ||
from | string | The e-mail address of the |
return | System |
public Mail ( string from, string toRecipients ) : System | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
return | System |
public Mail ( string from, string toRecipients, string smtpServer ) : System | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
return | System |
public static Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer ) : void | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
return | void |
public static Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string attachments, string smtpServer ) : void | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
attachments | string | A comma-separated or semicolon-separated list of file names to be attached to the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
return | void |
public static Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, |
||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
username | string | The username of the account used to authenticate to the SMTP server. |
password | The password of the account used to authenticate to the SMTP server. | |
return | void |
public static Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, |
||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
username | string | The username of the account used to authenticate to the SMTP server. |
password | The password of the account used to authenticate to the SMTP server. | |
enableSSL | bool | The flag that determines whether to use SSL when communicating with the SMTP server. |
return | void |
public static Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, string password ) : void | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
username | string | The username of the account used to authenticate to the SMTP server. |
password | string | The password of the account used to authenticate to the SMTP server. |
return | void |
public static Send ( string from, string toRecipients, string subject, string body, bool isBodyHtml, string smtpServer, string username, string password, bool enableSSL ) : void | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
username | string | The username of the account used to authenticate to the SMTP server. |
password | string | The password of the account used to authenticate to the SMTP server. |
enableSSL | bool | The flag that determines whether to use SSL when communicating with the SMTP server. |
return | void |
public static Send ( string from, string toRecipients, string ccRecipients, string bccRecipients, string subject, string body, bool isBodyHtml, string smtpServer ) : void | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
ccRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
bccRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
return | void |
public static Send ( string from, string toRecipients, string ccRecipients, string bccRecipients, string subject, string body, bool isBodyHtml, string attachments, string smtpServer ) : void | ||
from | string | The e-mail address of the |
toRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
ccRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
bccRecipients | string | A comma-separated or semicolon-separated e-mail address list of the |
subject | string | The subject of the |
body | string | The body of the |
isBodyHtml | bool | true if the |
attachments | string | A comma-separated or semicolon-separated list of file names to be attached to the |
smtpServer | string | The name or IP address of the SMTP server to be used for sending the |
return | void |