SendEmail Class

Class to send information by email.

Definition

Namespace: Aliquo.Core.Tools
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public class SendEmail : IDisposable
Inheritance
Object    SendEmail
Implements
IDisposable

Constructors

SendEmail Class constructor.
SendEmail(String) Class constructor.

Properties

Body Message body.
From Sender.
IsBodyHtml Indicates whether the body of the message contains HTML code.
MessageMailAddress with the message.
Priority Marks the priority of the email.
SMTPSmtpClient with the server SMTP.
SMTPServerEnableSsl Specifies whether the SMTP server requires an SSL secured connection.
SMTPServerHost SMTP server address.
SMTPServerPort SMTP server port (default 25).
Subject Subject or header.

Methods

AddConfig Applies the EMAIL_SERVER parameter settings to the class properties.
AttachmentsAdd Attach a file to the email.
Dispose IDisposable.
Send Send the email.
SMTPServerNotification f read receipt is required, who to notify.
ToAdd(MailAddressCollection) Email recipients, from a MailAddress collection.
ToAdd(Object) Email recipient, for multiple accounts separate them with ';'.
ToAdd(String) Email recipient, for multiple accounts separate them with ';'.
ToAdd(Object, Object) Email recipient, for multiple accounts separate them with ';'.
ToAdd(String, String) Email recipient, for multiple accounts separate them with ';'.
ToBcc(MailAddressCollection) Recipient with blind copy of the email, for multiple accounts separate them with ';'.
ToBcc(Object) Recipient with blind copy of the email, for multiple accounts separate them with ';'.
ToBcc(String) Recipient with blind copy of the email, for multiple accounts separate them with ';'.
ToBcc(Object, Object) Recipient with blind copy of the email, for multiple accounts separate them with ';'.
ToBcc(String, String) Recipient with blind copy of the email, for multiple accounts separate them with ';'.
ToCC(MailAddressCollection) Recipient with a copy of the email, for multiple accounts separate them with ';'.
ToCC(Object) Recipient with a copy of the email, for multiple accounts separate them with ';'.
ToCC(String) Recipient with a copy of the email, for multiple accounts separate them with ';'.
ToCC(Object, Object) Recipient with a copy of the email, for multiple accounts separate them with ';'.
ToCC(String, String) Recipient with a copy of the email, for multiple accounts separate them with ';'.

Extension Methods

GetAttributeFromT Get attribute from a class.
(Defined by ObjectExtensions)
ValidateDataAnnotations Validate class with validator of DataAnnotations.
(Defined by ObjectExtensions)

See Also