Ejemplo n.º 1
0
        private void sendEmailAboutPostVerification(Post post)
        {
            var email = new Email();

            email.FromAddress = "*****@*****.**";
            email.Body        = String.Format("<div>somebody did a post and is waiting for verification. </div><br><div><p>{0}</p></div> ", post.Text);
            foreach (var photo in post.Photos)
            {
                email.Body += String.Format("<img width='200' src='{0}'>", photo.url);
            }
            email.FromName = "Soloud";
            email.Subject  = "Post needs verification";

            var ElasticEmail = new ElasticEmailHelper();

            ElasticEmail.Send(email, new List <string>()
            {
                "*****@*****.**"
            });
        }
Ejemplo n.º 2
0
        public Task SendAsync(IdentityMessage message)
        {
            var ElasticEmail = new ElasticEmailHelper();

            return(ElasticEmail.Send(message));
        }