コード例 #1
0
        public void EmailDataAgentTests_SendEmail()
        {
            IEnumerable <string> to  = new[] { "*****@*****.**" };
            IEnumerable <string> cc  = new[] { "*****@*****.**" };
            IEnumerable <string> bcc = new[] { "*****@*****.**" };
            string subject           = "Assunto Teste";
            string body = "@Teste@";

            var sent = emailDataAgent.Send(to, cc, bcc, subject, body);

            Assert.IsTrue(sent);
        }
コード例 #2
0
ファイル: ShareBc.cs プロジェクト: JPAlvez/bliss-api
        public bool ShareQuestion(ShareRequestModel requestModel)
        {
            var sent = emailDataAgent.Send(new[] { requestModel.DestinationEmail }, null, null, "Share", requestModel.ContentUrl);

            if (sent)
            {
                return(sent);
            }
            else
            {
                throw new BlissException(CommonExceptionResources.InvalidShare);
            }
        }