0
我使用popclient接收來自我的Gmail的郵件,它在我的電腦上工作,但在VPS上不行,我不知道發生了什麼。我使用Gmail的特定密碼,我試圖改變端口。C#無法在VPS上收到郵件
輸出:
<< +OK Gpop ready for requests from 'IP1' f15mb392228917lds
>> USER 'GMAIL ADRESS'
<< +OK send PASS
>> PASS ********
<< +OK Welcome.
>> STAT
<< +OK 14 3002232
Event Fired: QueryPopInfoCompleted
Count: 14, Total Size: 3002232 bytes
>> LIST 1
<< +OK 1 1853
>> UIDL 1
<< +OK 1 GmailId15081a8efb4c1eba
>> RETR 1
<< +OK message follows
Delivered-To: 'GMAIL ADRESS'
Received: by 'IP2' with SMTP id g1csp520741wjl;
Mon, 19 Oct 2015 12:52:23 -0700 (PDT)
X-Received: by 'IP3'
Event Fired: MailPopCompleted
MailPopCompletedEventArgs.Aborted : True
Exception has been thrown by the target of an invocation.
添加'試穿catch'並檢查'Exception.InnerException'看到一個更加有用的錯誤消息。當前錯誤消息不會告訴除「有例外」之外的任何內容。 – cubrr
行,現在只有「ole32.dll」 – Xizt