C# Class EnterpriseWebLibrary.Email.EmailStatics

Exibir arquivo Open project: enduracode/enterprise-web-library

Private Properties

Property Type Description
Init void
SendDeveloperNotificationEmail void
SendHealthCheckEmail void
addAddressesToMailAddressCollection void
alterMessageForIntermediateInstallation void
getDeveloperEmailAddresses IEnumerable
getSendGridMessage SendGrid.SendGridMessage
htmlToPlainText string
sendEmail void
sendEmailWithSmtpServer void

Public Methods

Method Description
GetAdministratorEmailAddresses ( ) : IEnumerable

Returns a list of administrator email addresses.

SendEmail ( EmailMessage message ) : void

Sends the specified mail message using the SMTP server specified in the config file.

SendEmailWithDefaultFromAddress ( EmailMessage message ) : void

After setting the From property to the from address specified in the config file, sends the specified mail message using the SMTP server specified in the config file.

Private Methods

Method Description
Init ( ) : void
SendDeveloperNotificationEmail ( EmailMessage message ) : void
SendHealthCheckEmail ( string appFullName ) : void
addAddressesToMailAddressCollection ( IEnumerable emailAddressCollection, System mailAddressCollection ) : void
alterMessageForIntermediateInstallation ( EmailMessage m ) : void
getDeveloperEmailAddresses ( ) : IEnumerable

Returns a list of developer email addresses.

getSendGridMessage ( EmailMessage message ) : SendGrid.SendGridMessage
htmlToPlainText ( string html ) : string
sendEmail ( EmailMessage message, bool isDeveloperNotificationEmail ) : void
sendEmailWithSmtpServer ( Configuration smtpServer, EmailMessage message ) : void

Method Details

GetAdministratorEmailAddresses() public static method

Returns a list of administrator email addresses.
public static GetAdministratorEmailAddresses ( ) : IEnumerable
return IEnumerable

SendEmail() public static method

Sends the specified mail message using the SMTP server specified in the config file.
public static SendEmail ( EmailMessage message ) : void
message EmailMessage
return void

SendEmailWithDefaultFromAddress() public static method

After setting the From property to the from address specified in the config file, sends the specified mail message using the SMTP server specified in the config file.
public static SendEmailWithDefaultFromAddress ( EmailMessage message ) : void
message EmailMessage
return void