C# Class Engage.Dnn.Booking.EmailService

Helps sending emails
Afficher le fichier Open project: EngageSoftware/Engage-Booking

Méthodes publiques

Méthode Description
SendAcceptanceEmail ( Appointment appointment ) : void

Sends the email indicating to an appointment requestor that their request has been approved.

SendDeclineEmail ( Appointment appointment, string declineReason ) : void

Sends the email indicating to an appointment requestor that their request has been declined.

Private Methods

Méthode Description
GetCurrentUserDisplayName ( ) : string

Gets the display name of the current user or defaults to localized text from the shared resources file if the current user is anonymous. (Such as when the appointment is approved via email.)

GetLocalizedFormattedText ( string localizationKey, Appointment appointment ) : string

Gets the text for the given localizationKey (from the Utility.LocalSharedResourceFile), and fills in the string.Format(System.IFormatProvider,string,object[]) placeholders in that text with appointment information.

GetLocalizedFormattedText ( string localizationKey, Appointment appointment, string declineReason ) : string

Gets the text for the given localizationKey (from the Utility.LocalSharedResourceFile), and fills in the string.Format(System.IFormatProvider,string,object[]) placeholders in that text with appointment information.

GetLocalizedFormattedText ( string localizationKey, Appointment appointment, string approvalUrl, string declineUrl, string loginUrl ) : string

Gets the text for the given localizationKey (from the Utility.LocalSharedResourceFile), and fills in the string.Format(System.IFormatProvider,string,object[]) placeholders in that text with appointment information.

GetLocalizedFormattedText ( string localizationKey, Appointment appointment, string declineReason, string approvalUrl, string declineUrl, string loginUrl ) : string

Gets the text for the given localizationKey (from the Utility.LocalSharedResourceFile), and fills in the string.Format(System.IFormatProvider,string,object[]) placeholders in that text with appointment information.

QueueEmail ( string toList, string subject, string body, string attachment ) : void

Queues an email to be sent later to the given email address with the given subject and HTML body.

SendNewRequestEmail ( Appointment appointment, string toEmailAddresses, string approvalUrl, string declineUrl, string loginUrl ) : void

Method Details

SendAcceptanceEmail() public static méthode

Sends the email indicating to an appointment requestor that their request has been approved.
public static SendAcceptanceEmail ( Appointment appointment ) : void
appointment Appointment The appointment which was approved.
Résultat void

SendDeclineEmail() public static méthode

Sends the email indicating to an appointment requestor that their request has been declined.
public static SendDeclineEmail ( Appointment appointment, string declineReason ) : void
appointment Appointment The appointment which was declined.
declineReason string The reason for declining the appointment, or null.
Résultat void