C# Class Framework.Core.Utilities.Email.EmailSender

Summary description for OutsideMailer.
Show file Open project: coreframework/Core-Framework Class Usage Examples

Public Methods

Method Description
EmailSender ( String server, String login, String psw ) : System

Initializes a new instance of the EmailSender class.

SendEmail ( String from, String fromEmail, IEnumerable toEmails, IEnumerable ccEmails, IEnumerable bccEmails, String subject, String text, System.Net.Mail.Attachment attach, bool isHtmlFormat ) : bool

Sends the email.

SendEmail ( String from, String fromEmail, IEnumerable toEmails, String subject, String text, System.Net.Mail.AttachmentCollection attachPath, bool isHtmlFormat ) : bool

Sends emails to the specified address.

SendEmail ( String from, String fromEmail, String to, String toEmail, String subject, String text, System.Net.Mail.AttachmentCollection attachPath, bool isHtmlFormat ) : bool

Sends emails to the specified address.

Private Methods

Method Description
SendMail ( MailMessage message ) : bool

Sends the mail.

Method Details

EmailSender() public method

Initializes a new instance of the EmailSender class.
public EmailSender ( String server, String login, String psw ) : System
server String The server.
login String The login.
psw String The PSW.
return System

SendEmail() public method

Sends the email.
public SendEmail ( String from, String fromEmail, IEnumerable toEmails, IEnumerable ccEmails, IEnumerable bccEmails, String subject, String text, System.Net.Mail.Attachment attach, bool isHtmlFormat ) : bool
from String From.
fromEmail String From email.
toEmails IEnumerable To emails.
ccEmails IEnumerable The cc emails.
bccEmails IEnumerable The BCC emails.
subject String The subject.
text String The text.
attach System.Net.Mail.Attachment The attach.
isHtmlFormat bool if set to true [is HTML format].
return bool

SendEmail() public method

Sends emails to the specified address.
public SendEmail ( String from, String fromEmail, IEnumerable toEmails, String subject, String text, System.Net.Mail.AttachmentCollection attachPath, bool isHtmlFormat ) : bool
from String From name.
fromEmail String From email.
toEmails IEnumerable Collection of To emails.
subject String Email subject
text String Email body.
attachPath System.Net.Mail.AttachmentCollection Path to the attachment.
isHtmlFormat bool Send in html format.
return bool

SendEmail() public method

Sends emails to the specified address.
public SendEmail ( String from, String fromEmail, String to, String toEmail, String subject, String text, System.Net.Mail.AttachmentCollection attachPath, bool isHtmlFormat ) : bool
from String From name.
fromEmail String From email.
to String To name.
toEmail String To email.
subject String Email subject
text String Email body.
attachPath System.Net.Mail.AttachmentCollection Path to the Attachments.
isHtmlFormat bool Send in html format.
return bool