Migrated to latest libs and .net core 3.1 fingers crossed...
This commit is contained in:
@@ -119,8 +119,8 @@ namespace rockfishCore.Util
|
||||
bool trackDeliveryStatus = false, string CustomHeader = "", string CustomHeaderValue = "")
|
||||
{
|
||||
var message = new MimeMessage();
|
||||
message.From.Add(new MailboxAddress(MessageFrom));
|
||||
message.To.Add(new MailboxAddress(MessageTo));
|
||||
message.From.Add(new MailboxAddress("",MessageFrom));
|
||||
message.To.Add(new MailboxAddress("",MessageTo));
|
||||
message.Subject = MessageSubject;
|
||||
|
||||
message.Body = new TextPart("plain")
|
||||
@@ -273,12 +273,12 @@ namespace rockfishCore.Util
|
||||
case rfMailAccount.sales:
|
||||
from_account = MAIL_ACCOUNT_SALES;
|
||||
from_account_password = MAIL_ACCOUNT_PASSWORD_SALES;
|
||||
from = new MailboxAddress(from_account);
|
||||
from = new MailboxAddress("",from_account);
|
||||
break;
|
||||
default:
|
||||
from_account = MAIL_ACCOUNT_SUPPORT;
|
||||
from_account_password = MAIL_ACCOUNT_PASSWORD_SUPPORT;
|
||||
from = new MailboxAddress(from_account);
|
||||
from = new MailboxAddress("",from_account);
|
||||
break;
|
||||
}
|
||||
reply.From.Add(from);
|
||||
@@ -520,7 +520,7 @@ namespace rockfishCore.Util
|
||||
string CustomHeader = "", string CustomHeaderValue = "")
|
||||
{
|
||||
var message = new MimeMessage();
|
||||
message.From.Add(new MailboxAddress(MessageFrom));
|
||||
message.From.Add(new MailboxAddress("",MessageFrom));
|
||||
|
||||
|
||||
//case 3512 handle more than one email in the address
|
||||
@@ -530,13 +530,13 @@ namespace rockfishCore.Util
|
||||
var addrs = MessageTo.Split(',');
|
||||
foreach (string addr in addrs)
|
||||
{
|
||||
mbAll.Add(new MailboxAddress(addr.Trim()));
|
||||
mbAll.Add(new MailboxAddress("",addr.Trim()));
|
||||
}
|
||||
message.To.AddRange(mbAll);
|
||||
}
|
||||
else
|
||||
{
|
||||
message.To.Add(new MailboxAddress(MessageTo));
|
||||
message.To.Add(new MailboxAddress("",MessageTo));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user