C# Class MWS.Core.EmailQueueManager

Inheritance: IEmailQueueManager
Show file Open project: SavageLearning/Machete Class Usage Examples

Public Methods

Method Description
EmailQueueManager ( IEmailService eServ, IUnitOfWork uow ) : System
ProcessQueue ( EmailServerConfig cfg ) : void

Get emails from EmailService and calle SendMail to send emails

SendEmail ( Email e, EmailServerConfig cfg ) : bool

create SmtpClient, create mail message, and send message. Catches exceptions and puts them in QueueManager.ExceptionStack.

getDiagnostics ( ) : string
getExceptions ( ) : string

String of exception messages, 1 per line

getSent ( ) : string

Method Details

EmailQueueManager() public method

public EmailQueueManager ( IEmailService eServ, IUnitOfWork uow ) : System
eServ IEmailService
uow IUnitOfWork
return System

ProcessQueue() public method

Get emails from EmailService and calle SendMail to send emails
public ProcessQueue ( EmailServerConfig cfg ) : void
cfg EmailServerConfig
return void

SendEmail() public method

create SmtpClient, create mail message, and send message. Catches exceptions and puts them in QueueManager.ExceptionStack.
public SendEmail ( Email e, EmailServerConfig cfg ) : bool
e Machete.Domain.Email
cfg EmailServerConfig
return bool

getDiagnostics() public method

public getDiagnostics ( ) : string
return string

getExceptions() public method

String of exception messages, 1 per line
public getExceptions ( ) : string
return string

getSent() public method

public getSent ( ) : string
return string