12121
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using Org.BouncyCastle.Bcpg.OpenPgp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Mail;
|
||||
using System.Web;
|
||||
using System.Web.Mail;
|
||||
|
||||
namespace FineUIPro.Web.common
|
||||
{
|
||||
public class MailHelper
|
||||
@@ -123,6 +127,15 @@ namespace FineUIPro.Web.common
|
||||
if(mailCC!=null &&mailCC.Length>0)
|
||||
mail.Cc = string.Join(",", mailCC);
|
||||
|
||||
if (!string.IsNullOrEmpty(mailAttch))
|
||||
{
|
||||
string[] arr = mailAttch.Split(',');
|
||||
for (int i = 0; i < arr.Length; i++)
|
||||
{
|
||||
|
||||
mail.Attachments.Add(new System.Web.Mail.MailAttachment(@arr[i]));
|
||||
}
|
||||
}
|
||||
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
|
||||
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ps.EmailYx);
|
||||
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", ps.EmailPass);
|
||||
|
||||
Reference in New Issue
Block a user