2014-08-28 36 views
1

對於我們要爲用戶生成的EML,他們可以在Outlook 2010中打開並在對郵件內容進行微小更改或添加附件或收件人後發送的應用程序。我們在生成EML時設置的一個東西是我們設置爲郵箱的'發件人'地址。所有的用戶都可以訪問到這個郵箱,但是當他們打開EML並嘗試發送它,總是返回錯誤:發送帶有指定'發件人'地址的未發送的EML

Delivery has failed to these recipients or groups: 

[email protected] 
You can't send a message on behalf of this user unless you have permission to do so. Please make sure you're sending on behalf of the correct sender, or request the necessary permission. If the problem continues, please contact your helpdesk. 

但是,如果用戶打開郵件,通過在選擇郵箱手動設置郵箱'From'-combobox(注意電子郵件中沒有任何可視變化),然後發送郵件,郵件成功發送。在我看來,我錯過了EML中的一些東西,以便成功指定'From'地址。我想相信,只要打開郵件的用戶可以訪問郵箱,就可以成功發送郵件。

的EML的一個例子是下面的:

From: [email protected] 
To: [email protected], [email protected] 
Cc: [email protected] 
Bcc: [email protected] 
Message-ID: <[email protected]> 
Subject: subject 
MIME-Version: 1.0 
Content-Type: multipart/related; 
boundary="----=_Part_0_30562042.1409121155299" 
X-Unsent: 1 

------=_Part_0_30562042.1409121155299 
Content-Type: text/html; charset=UTF-8 
Content-Transfer-Encoding: quoted-printable 

body goes here 
------=_Part_0_30562042.1409121155299-- 

回答

0

我想出一個辦法如何正確地設置郵箱作爲發送者,但它涉及通過在打開設定SentOnBehalfOfName指定在VB Outlook中的宏 - MailItem的事件。不完全是我的首選解決方案...

相關問題