Exemplo n.º 1
0
        private static MailMessage GenericUserEmail(MessageTemplate template, SiteSettings settings, string UserName, string userEmail, string password, string dealPassword)
        {
            MailMessage emailTemplate = MessageTemplateHelper.GetEmailTemplate(template, userEmail);

            if (emailTemplate == null)
            {
                return(null);
            }
            emailTemplate.Subject = GenericUserMessageFormatter(settings, emailTemplate.Subject, UserName, userEmail, password, dealPassword);
            emailTemplate.Body    = GenericUserMessageFormatter(settings, emailTemplate.Body, UserName, userEmail, password, dealPassword);
            return(emailTemplate);
        }
Exemplo n.º 2
0
        private static MailMessage GenericOrderEmail(MessageTemplate template, SiteSettings settings, string UserName, string userEmail, string orderId, decimal total, string memo, string shippingType, string shippingName, string shippingAddress, string shippingZip, string shippingPhone, string shippingCell, string shippingEmail, string shippingBillno, decimal refundMoney, string closeReason)
        {
            MailMessage emailTemplate = MessageTemplateHelper.GetEmailTemplate(template, userEmail);

            if (emailTemplate == null)
            {
                return(null);
            }
            emailTemplate.Subject = GenericOrderMessageFormatter(settings, UserName, emailTemplate.Subject, orderId, total, memo, shippingType, shippingName, shippingAddress, shippingZip, shippingPhone, shippingCell, shippingEmail, shippingBillno, refundMoney, closeReason);
            emailTemplate.Body    = GenericOrderMessageFormatter(settings, UserName, emailTemplate.Body, orderId, total, memo, shippingType, shippingName, shippingAddress, shippingZip, shippingPhone, shippingCell, shippingEmail, shippingBillno, refundMoney, closeReason);
            return(emailTemplate);
        }
Exemplo n.º 3
0
 private static System.Net.Mail.MailMessage GenericOrderEmail(MessageTemplate template, SiteSettings settings, string username, string userEmail, string orderId, decimal total, string memo, string shippingType, string shippingName, string shippingAddress, string shippingZip, string shippingPhone, string shippingCell, string shippingEmail, string shippingBillno, decimal refundMoney, string closeReason)
 {
     System.Net.Mail.MailMessage emailTemplate = MessageTemplateHelper.GetEmailTemplate(template, userEmail);
     System.Net.Mail.MailMessage result;
     if (emailTemplate == null)
     {
         result = null;
     }
     else
     {
         emailTemplate.Subject = Messenger.GenericOrderMessageFormatter(settings, username, emailTemplate.Subject, orderId, total, memo, shippingType, shippingName, shippingAddress, shippingZip, shippingPhone, shippingCell, shippingEmail, shippingBillno, refundMoney, closeReason);
         emailTemplate.Body    = Messenger.GenericOrderMessageFormatter(settings, username, emailTemplate.Body, orderId, total, memo, shippingType, shippingName, shippingAddress, shippingZip, shippingPhone, shippingCell, shippingEmail, shippingBillno, refundMoney, closeReason);
         result = emailTemplate;
     }
     return(result);
 }
Exemplo n.º 4
0
 private static System.Net.Mail.MailMessage GenericUserEmail(MessageTemplate template, SiteSettings settings, string username, string userEmail, string password, string dealPassword)
 {
     System.Net.Mail.MailMessage emailTemplate = MessageTemplateHelper.GetEmailTemplate(template, userEmail);
     System.Net.Mail.MailMessage result;
     if (emailTemplate == null)
     {
         result = null;
     }
     else
     {
         emailTemplate.Subject = Messenger.GenericUserMessageFormatter(settings, emailTemplate.Subject, username, userEmail, password, dealPassword);
         emailTemplate.Body    = Messenger.GenericUserMessageFormatter(settings, emailTemplate.Body, username, userEmail, password, dealPassword);
         result = emailTemplate;
     }
     return(result);
 }