Beispiel #1
0
        public static void SendMessageboardNotificationEmail(ClimberProfile from, ClimberProfile to, string message)
        {
            string toEmail = to.Email;

            SMTP.PostSingleMail(
                new CFEmail
            {
                Subject = string.Format("{0} posted a message on your message board", from.FullName),
                From    = CFSettings.MailMan,
                To      = new MailAddress(toEmail, to.FullName),
                Body    = CFEmailBodyGenerator.GetUserMessageboardNotificationBody(from.ID, from.FullName, to.Email, message)
            });
        }