コード例 #1
0
ファイル: MailSender.asmx.cs プロジェクト: NALSS/socioboard
        public string SendTaskNotificationMail(string emailId, string mailBody, string Subject)
        {
            string ret = string.Empty;
            string username = ConfigurationManager.AppSettings["username"];
            string host = ConfigurationManager.AppSettings["Mandrillhost"];
            string port = ConfigurationManager.AppSettings["Mandrillport"];
            string pass = ConfigurationManager.AppSettings["Mandrillpassword"];
            string from = ConfigurationManager.AppSettings["tomail"];
            // string from = ConfigurationManager.AppSettings["Mandrillusername"];

            MailHelper objMailHelper = new MailHelper();
            ret = objMailHelper.SendFeedMailByMandrill(host, Convert.ToInt32(port), from, pass, emailId, Subject, mailBody);
            return ret;
        }
コード例 #2
0
ファイル: MailSender.asmx.cs プロジェクト: NALSS/socioboard
 public string SendFeedMail(string emailId, string feed, string fromname, string mailBody)
 {
     string ret = string.Empty;
     string username = ConfigurationManager.AppSettings["username"];
     string host = ConfigurationManager.AppSettings["Mandrillhost"];
     string port = ConfigurationManager.AppSettings["Mandrillport"];
     string pass = ConfigurationManager.AppSettings["Mandrillpassword"];
     //   string from = ConfigurationManager.AppSettings["Mandrillusername"];
     string from = ConfigurationManager.AppSettings["tomail"];
     string Subject = "Reported by " + fromname + " through Socio Board";
     MailHelper objMailHelper = new MailHelper();
     ret = objMailHelper.SendFeedMailByMandrill(host, Convert.ToInt32(port), from, pass, emailId, Subject, mailBody);
     return ret;
 }