Пример #1
0
        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);
        }
Пример #2
0
        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);
        }