/// <summary> /// Initializes a new instance of the <see cref="SendGridSender" /> class. /// </summary> /// <param name="senderProfile">The sender profile.</param> /// <remarks>This is the constructor that is used by the Sitefinity notifications send scheduled task /// to construct an initialized instance of this sender.</remarks> public SendGridSender(SenderProfileElement senderProfile) { this.InitSettings(senderProfile); }
/// <summary> /// Initializes a new instance of the <see cref="SendGridSender" /> class. /// </summary> /// <param name="senderProfile">The sender profile.</param> /// <remarks>This is the constructor that is used by the Sitefinity notifications send scheduled task /// to construct an initialized instance of this sender.</remarks> public SendGridSender(SenderProfileElement senderProfile) { this.InitSettings(senderProfile); }
private void InitSettings(SenderProfileElement senderProfile) { var smtpSenderProfile = (SmtpSenderProfileElement)senderProfile; this.Username = smtpSenderProfile.Username; this.Password = smtpSenderProfile.Password; }
private void InitSettings(SenderProfileElement senderProfile) { var smtpSenderProfile = (SmtpSenderProfileElement)senderProfile; this.ApiKey = smtpSenderProfile.Password; }