Example #1
0
        public void SendInvitationEmail(string emailTo, Guid invitationSecurity)
        {
            var mailFrom = new MailAddress("*****@*****.**", "Grasews");

            var mail = _emailMessageService.CreateShareInvitationMessageMail(mailFrom, emailTo, invitationSecurity);

            using (var smtp = CreateGmailSmtpClient())
            {
                smtp.Send(mail);
            }
        }