C# 클래스 Engage.Dnn.Booking.EmailService

Helps sending emails
파일 보기 프로젝트 열기: EngageSoftware/Engage-Booking

공개 메소드들

메소드 설명
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