RTSmtpClient(host, port, username, password, encryption, log, timeout) SendEmail(from, to, subject, bodyPlain, bodyHtml) SendEmail(from, to, headers, bodyPlain, bodyHtml)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Sealed class: RT.Util.RTSmtpClientSummaryProvides methods to send e-mails via an SMTP server. Constructors |
Creates a connection to the SMTP server and authenticates the specified user. | |
Instance methodsvoid | | Closes the SMTP connection and frees all associated resources. | void | SendEmail(MailAddress from, IEnumerable<MailAddress> to, string subject, string bodyPlain, string bodyHtml) |
Sends an e-mail. | void | SendEmail(MailAddress from, IEnumerable<MailAddress> to, IEnumerable<string> headers, string bodyPlain, string bodyHtml) |
Sends an email with fully custom headers. |
Static methodsstring | |
Encodes an email header for use with RTSmtpClient.SendEmail(MailAddress, IEnumerable<MailAddress>, IEnumerable<string>, string, string), escaping, quoting and line-wrapping as required by the relevant
RFCs. | string | |
|