我通過我的C#應用程序發送電子郵件的方式如下多個頭被髮送
MailMessage mail = new MailMessage();
mail.To.Add(srEmail);
mail.From = new MailAddress("[email protected]", srSender);
mail.Subject = srEmailTitle;
mail.Body = srEmailBody;
mail.IsBodyHtml = true;
mail.SubjectEncoding = System.Text.Encoding.UTF8;
mail.BodyEncoding = System.Text.Encoding.UTF8;
SmtpClient smtp = new SmtpClient();
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.UseDefaultCredentials = true;
smtp.Host = "127.0.0.1";
smtp.Port = 25;
smtp.Send(mail);
我使用Windows Server 2008 R2和IIS 7.5,但郵件服務使用IIS現在6.0
的IIS配置低於
的方式我不知道是否造成IIS這個問題或C#應用程序,所以最好問它。感謝重播。這個問題可以在可以看到下面我的意思是從頭部
x-store-info:sbevkl2QZR7OXo7WID5ZcaZ0jeT0hTF6w5JqyzrMGIIJ4/L/t2gj2cA4gOeWpl7k+VkJUhAu0L19pcdx17/6zH+umIRUQcxNC7a6JMdOu4uk+atrpASsFAd6JPSp2WMA
Authentication-Results: hotmail.com; sender-id=temperror (sender IP is 85.17.154.139) [email protected]; dkim=none header.d=monstermmorpg.com; x-hmca=none
X-Message-Status: n:0:n
X-SID-PRA: MonsterMMORPG <[email protected]>
X-DKIM-Result: None
X-AUTH-Result: NONE
X-Message-Delivery: Vj0xLjE7dXM9MDtsPTA7YT0xO0Q9MTtHRD0xO1NDTD0w
X-Message-Info: NhFq/7gR1vQcnWpWXvTdSPoVLSrfQUf9NNYiD+nue1hb767bbTKXz+tuMD66iU4vKsnCmrISnMcViv7BRc8FinIdJij0qRdzfb9MQFyl8Qnq2jH2yHHz6W3BUjjFUEclGZIdpMuV4EQ=
Received: from noreply.monstermmorpg.com ([85.17.154.139]) by BAY0-MC3-F1.Bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4900);
Sat, 10 Mar 2012 08:20:03 -0800
Received: from XCPV002 ([127.0.0.1]) by noreply.monstermmorpg.com with Microsoft SMTPSVC(7.5.7601.17514);
Sat, 10 Mar 2012 16:20:03 +0000
MIME-Version: 1.0
From: "MonsterMMORPG"
<[email protected]>
To: [email protected]
Date: 10 Mar 2012 16:20:03 +0000
Subject: =?utf-8?B?UG9rZW1vbkNyYWZ0IGRhaGEga2FsaXRlbGkgYmlyIG95dW4g?=
=?utf-8?B?b2xhcmFrIGdlcmkgZMO2bmTDvC4gRXNraSBoZXNhYsSxbsSxeiBkdXJ1?=
=?utf-8?B?eW9yLg==?=
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: base64
Return-Path: [email protected]
Message-ID: <[email protected]>
X-OriginalArrivalTime: 10 Mar 2012 16:20:03.0608 (UTC) FILETIME=[A62AC180:01CCFED9]
多個接收。如果你仔細看,你會看到有從頭部獲得2。我只想讓它只有一個。所以基本上刪除從頭部收到的第二個。
我不確定,但我認爲收到這裏意味着郵件服務器已經處理這封郵件作爲您的郵件被收件人收到之前的中間體。 所以這只是它在接收器的消息頭中顯示的方式。 你爲什麼只想要其中的一個? – Dinesh 2012-03-10 16:41:35
嗯,我擔心它會增加垃圾郵件箱的機會。 – MonsterMMORPG 2012-03-10 17:03:51
幾乎沒有。許多公司在打到互聯網之前通過內部郵件服務器運行電子郵件。 – TomTom 2012-03-10 20:43:55