예제 #1
0
  /// <summary>
  /// 注册发送
  /// </summary>
 public void sendRegEmail(string email,string userName,string pwd)
  {
      EmailFormatInfo emailFormat = EmailFormat.GetEmailFormatByID(1);
      if (emailFormat.IsSend)
      {
          MailUtility ma = new MailUtility();
          string subject = string.Format(emailFormat.EmailTitle, userName);
          string body = string.Format(emailFormat.EmailTemplete, userName, siteName, pwd);
          ma.SetMail(email, subject, body);
      }
  }
예제 #2
0
 /// <summary>
 /// 定单生成
 /// </summary>
 public void sendOrderEmail(string orderID, string money)
 {
     MembershipUser user = Membership.GetUser();
     EmailFormatInfo emailFormat = EmailFormat.GetEmailFormatByID(4);
     if (emailFormat.IsSend)
     {
         MailUtility ma = new MailUtility();
         string subject = string.Format(emailFormat.EmailTitle, siteName);
         string body = string.Format(emailFormat.EmailTemplete, siteName, user.UserName, orderID, money);
         ma.SetMail(user.Email, subject, body);
     }
 }