public static void SendNewRequestEmail(Appointment appointment, string toEmailAddresses, string approvalUrl, string declineUrl, string loginUrl) { if (appointment == null) { throw new ArgumentNullException("appointment", "appointment must not be null"); } QueueEmail( toEmailAddresses, GetLocalizedFormattedText("NewRequestSubject.Format", appointment), GetLocalizedFormattedText("NewRequestBody.Format", appointment, approvalUrl, declineUrl, loginUrl), appointment.ToICal()); }
/// <summary> /// Sends the email indicating to an appointment requestor that their request has been approved. /// </summary> /// <param name="appointment">The appointment which was approved.</param> public static void SendAcceptanceEmail(Appointment appointment) { if (appointment == null) { throw new ArgumentNullException("appointment", "appointment must not be null"); } QueueEmail( appointment.RequestorEmail, GetLocalizedFormattedText("AcceptanceSubject.Format", appointment), GetLocalizedFormattedText("AcceptanceBody.Format", appointment), appointment.ToICal()); }
/// <summary> /// Sends the email indicating to an appointment requestor that their request has been approved. /// </summary> /// <param name="appointment">The appointment which was approved.</param> public static void SendAcceptanceEmail(Appointment appointment) { if (appointment == null) { throw new ArgumentNullException("appointment", "appointment must not be null"); } QueueEmail( appointment.RequestorEmail, GetLocalizedFormattedText("AcceptanceSubject.Format", appointment), GetLocalizedFormattedText("AcceptanceBody.Format", appointment), appointment.ToICal()); }
public static void SendNewRequestEmail(Appointment appointment, string toEmailAddresses, string approvalUrl, string declineUrl, string loginUrl) { if (appointment == null) { throw new ArgumentNullException("appointment", "appointment must not be null"); } QueueEmail( toEmailAddresses, GetLocalizedFormattedText("NewRequestSubject.Format", appointment), GetLocalizedFormattedText("NewRequestBody.Format", appointment, approvalUrl, declineUrl, loginUrl), appointment.ToICal()); }