Sphyrnidae Common Library  2.0.1
Shared Utilities/Library
Sphyrnidae.Common.EmailUtilities.Email Class Reference

Wrapper/Helper class around sending emails More...

Static Public Member Functions

static Task< bool > SendAsync (IEmail email, string to, string subject, string content)
 Sends a custom email More...
 
static Task< bool > SendAsync (IEmail email, IEnumerable< string > to, string subject, string content)
 Sends a custom email More...
 
static Task< bool > SendAsync (IEmail email, EmailType type, string subject, string content)
 Sends an email type that has defined/configured recipients More...
 
static Task< bool > SendAsync (IEmail email, string to, string cc, string subject, string content)
 Sends a custom email More...
 
static Task< bool > SendAsync (IEmail email, IEnumerable< string > to, string cc, string subject, string content)
 Sends a custom email More...
 
static Task< bool > SendAsync (IEmail email, EmailType type, string cc, string subject, string content)
 Sends an email type that has defined/configured recipients More...
 
static Task< bool > SendAsync (IEmail email, string to, IEnumerable< string > cc, string subject, string content)
 Sends a custom email More...
 
static Task< bool > SendAsync (IEmail email, IEnumerable< string > to, IEnumerable< string > cc, string subject, string content)
 Sends a custom email More...
 
static Task< bool > SendAsync (IEmail email, EmailType type, IEnumerable< string > cc, string subject, string content)
 Sends an email type that has defined/configured recipients More...
 

Detailed Description

Wrapper/Helper class around sending emails

Member Function Documentation

◆ SendAsync() [1/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
EmailType  type,
IEnumerable< string >  cc,
string  subject,
string  content 
)
static

Sends an email type that has defined/configured recipients

Parameters
emailThe implementation of the IEmail interface
typeThe type of email being sent
ccA collection of Who gets copied on the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [2/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
EmailType  type,
string  cc,
string  subject,
string  content 
)
static

Sends an email type that has defined/configured recipients

Parameters
emailThe implementation of the IEmail interface
typeThe type of email being sent
ccWho gets copied on the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [3/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
EmailType  type,
string  subject,
string  content 
)
static

Sends an email type that has defined/configured recipients

Parameters
emailThe implementation of the IEmail interface
typeThe type of email being sent
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [4/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
IEnumerable< string >  to,
IEnumerable< string >  cc,
string  subject,
string  content 
)
static

Sends a custom email

Parameters
emailThe implementation of the IEmail interface
toA collection of "to" recipients of the email
ccA collection of Who gets copied on the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [5/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
IEnumerable< string >  to,
string  cc,
string  subject,
string  content 
)
static

Sends a custom email

Parameters
emailThe implementation of the IEmail interface
toA collection of "to" recipients of the email
ccWho gets copied on the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [6/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
IEnumerable< string >  to,
string  subject,
string  content 
)
static

Sends a custom email

Parameters
emailThe implementation of the IEmail interface
toA collection of "to" recipients of the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [7/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
string  to,
IEnumerable< string >  cc,
string  subject,
string  content 
)
static

Sends a custom email

Parameters
emailThe implementation of the IEmail interface
toRecipient of the email
ccA collection of Who gets copied on the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [8/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
string  to,
string  cc,
string  subject,
string  content 
)
static

Sends a custom email

Parameters
emailThe implementation of the IEmail interface
toRecipient of the email
ccWho gets copied on the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

◆ SendAsync() [9/9]

static Task<bool> Sphyrnidae.Common.EmailUtilities.Email.SendAsync ( IEmail  email,
string  to,
string  subject,
string  content 
)
static

Sends a custom email

Parameters
emailThe implementation of the IEmail interface
toRecipient of the email
subjectSubject of the email
contentEmail body
Returns
True if send seems to be successful, false otherwise

The documentation for this class was generated from the following file: