BCC是故意冷落,否則止跌不會'失明'。 目前正致力於生成用戶從他自己的客戶端發送的草稿郵件。發現此問題的方法:
我「發送」郵件使用拾取目錄,從那裏我可以改變的.eml來解決這個問題:
var mailMessage = new MailMessage();
mailMessage.To.Add(dummyEmail);
using (var client = new SmtpClient())
{
client.UseDefaultCredentials = true;
client.DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory;
client.PickupDirectoryLocation = tempFolder;
client.Send(mailMessage);
}
var filePath = Directory.GetFiles(tempFolder).Single();
var lines = File.ReadAllLines(filePath);
//Search for receiver (To) and replace it with BCC since I don't need To in my case
for (int i = 0; i < lines.Length; i++)
{
if (lines[i].StartsWith("To: " + dummyEmail))
{
lines[i] = "Bcc: " + bcc; //Replace To with Bcc
break;
}
}
BCC是故意冷落,否則止跌」不要盲目。 如果有解決方法,還是要搞清楚自己。 目前正致力於生成用戶從他自己的客戶端發送的草稿郵件。 – markbeij