public bool SendEmailWithAttachment(long emailId, MemoryStream stream, out string error) { var entity = EmailMessageRepository.GetById(emailId); if (entity != null) { return(SendRawEmail(entity, stream, out error)); } error = "email message entity not found"; return(false); }
public bool SendEmail(long emailId, out string error) { var entity = EmailMessageRepository.GetById(emailId); if (entity != null) { return(SendEmail(entity, out error)); } error = "email message entity not found"; return(false); }