/// <summary>Sends the email message to Amazon's Simple Email Service.</summary> /// <returns> /// <see langword="true" /> if the message is sent successfully, <see langword="false" /> if it fails. /// </returns> public bool Send() { if (!Validate()) { return(false); } if (!string.IsNullOrWhiteSpace(AttachmentFilePath) && File.Exists(AttachmentFilePath)) { var rawEmail = new RawEmail(this); return(rawEmail.Send()); } var formattedEmail = new FormattedEmail(this); return(formattedEmail.Send()); }
/// <summary>Sends the email message to Amazon's Simple Email Service.</summary> /// <returns> /// <see langword="true" /> if the message is sent successfully, <see langword="false" /> if it fails. /// </returns> public bool Send() { if (!Validate()) return false; if (!string.IsNullOrWhiteSpace(AttachmentFilePath) && File.Exists(AttachmentFilePath)) { var rawEmail = new RawEmail(this); return rawEmail.Send(); } var formattedEmail = new FormattedEmail(this); return formattedEmail.Send(); }