我已經通過對下面的問題的答案,並發現它非常有幫助。但是,我對smtp服務器的行爲有不同的問題。 Mailbox unavailable 和Relay configuration服務器響應是:5.7.1無法中繼/郵件服務器守護進程
情景: 我有我沒有訪問,即只憑據兩個SMTP服務器。在發送來自1臺服務器的電子郵件時,我收到以下錯誤:
Mailbox unavailable. The server response was: 5.7.1 Unable to relay
Type: System.Net.Mail.SmtpFailedRecipientException:
Source:System
Stack Trace: at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message)
非常清楚,即smtp服務器無法中繼該消息。然而,其他服務器上的SendEmail方法沒有拋出任何異常,但我收到了梅勒守護電子郵件消息,指出:
This is the mail system at host test.relay.host.name.changed.
I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The mail system
[email protected]: host mx3.hotmail.com[xx.xx.xx.xxx] said: 550 Requested action not taken: mailbox unavailable (in reply to RCPT TO command)
問:
- 爲什麼不同的行爲?即在一種情況下,我收到郵件程序 守護程序消息,而在其他SendEmail方法中的例外?
此外,
- 具體而言如何郵包守護進程消息工作?因爲按照第二條消息 ,似乎它是發送它的中繼。
- 如果這是一個配置差異,那麼它們是什麼?
如果您發送電子郵件到e xisting電子郵件地址 - 兩臺服務器的行爲方式相同? – Evk
@Evk是的,他們這樣做。 –
您是否將電子郵件發送到hotmail帳戶?發件人帳戶也是Hotmail的呢? –