C# Класс Engage.Dnn.Booking.EmailService

Helps sending emails
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

SendAcceptanceEmail() публичный статический Метод

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.
Результат void

SendDeclineEmail() публичный статический Метод

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.
Результат void