C# Class Gopi.Sender

Represents the main class in Gopi component
Afficher le fichier Open project: keyvan/Gopi

Méthodes publiques

Méthode Description
AddNewEmail ( MailMessage email ) : void

Adds an email to database

SendAllEmails ( ) : int

Sends all emails stored in database

SendAllEmails ( int emailsCount ) : int

Sends a specified number of emails stored in database

Sender ( ) : System.Net

Public constructor

Sender ( string server ) : System.Net

Public constructor

Sender ( string server, string username, string password ) : System.Net

Public constructor

Sender ( string server, string username, string password, int timeOut, int port ) : System.Net

Public constructor

Private Methods

Méthode Description
SendMail ( MailMessage email ) : bool

Sends an email

SendQueue ( int emailsCount ) : int

Sends specified number of emails stored in the queue

Method Details

AddNewEmail() public méthode

Adds an email to database
public AddNewEmail ( MailMessage email ) : void
email System.Net.Mail.MailMessage Email to add
Résultat void

SendAllEmails() public méthode

Sends all emails stored in database
public SendAllEmails ( ) : int
Résultat int

SendAllEmails() public méthode

Sends a specified number of emails stored in database
public SendAllEmails ( int emailsCount ) : int
emailsCount int Number of emails to send
Résultat int

Sender() public méthode

Public constructor
public Sender ( ) : System.Net
Résultat System.Net

Sender() public méthode

Public constructor
public Sender ( string server ) : System.Net
server string SMTP server
Résultat System.Net

Sender() public méthode

Public constructor
public Sender ( string server, string username, string password ) : System.Net
server string SMTP server
username string SMTP username
password string SMTP password
Résultat System.Net

Sender() public méthode

Public constructor
public Sender ( string server, string username, string password, int timeOut, int port ) : System.Net
server string SMTP server
username string SMTP username
password string SMTP password
timeOut int Operation timeout
port int SMTP port
Résultat System.Net