1
여기 아무도 나를 "서버를 찾을 수 없습니다"예외 오류를 해결하는 데 도움이 될 수 있습니다. 나는 올바른 설정된 모든 매개 변수를 생각하지만 난 예외가 여전히 내 코드의 일부입니다POP3 서버를 찾을 수 없습니다
을 occur.Tq 이유를 궁금해 :
private void button_extract_Click(object sender, RoutedEventArgs e)
{
HeadersFromAndSubject("[email protected]",995,true, textbox_email_retriever.Text,
passwordBox_Receiver.SecurePassword.ToString(), 10);
}
public static void HeadersFromAndSubject(string hostname, int port, bool useSsl,
string username, string password, int messageNumber)
{
using (Pop3Client client = new Pop3Client())
{
client.Connect(hostname, port, useSsl); //error in this line
client.Authenticate(username, password);
}
}
호스트 이름은 pop.gmail.com이어야합니다. 시도해보고 알려주십시오. – Tariqulazam
IMAP과 POP3을 권장하지 않습니다. 특히 머리글과 제목 만 추출하려는 경우에 특히 좋습니다. –
Tq Tariqulazam.Solved. 이제 두 번째 오류 "서버가 사용자 자격 증명을 승인하지 않았습니다." 암호 상자에서 문제가 발생했을 것 같습니다. 누구든지 그것을 고치는 법을 알고 있습니다 .Q – Firdaus