コード例 #1
0
ファイル: MailerService.cs プロジェクト: Mylan719/snowfur2016
        public void SendAdminBroadcastMail(string email, string subject, string message)
        {
            var body = new BroadcastMail();
            body.Subject = subject;
            body.MessageLines = message.Split('\n').Select( line => line.TrimEnd() ).ToList();

            SendMail(email, subject, body.TransformText());
        }
コード例 #2
0
        public void SendAdminBroadcastMail(string email, string subject, string message)
        {
            var body = new BroadcastMail();

            body.Subject      = subject;
            body.MessageLines = message.Split('\n').Select(line => line.TrimEnd()).ToList();

            SendMail(email, subject, body.TransformText());
        }