MNR
MNR

Reputation: 1073

SMTP Credentionals checking (C#)

I want to devlop a screen for entering server, Port,Username and Password for SMTP (Mail sending)

So i want to provide one button for "Test" Those credentionals

How can i check credentionls are correct or not

Upvotes: 1

Views: 131

Answers (1)

UnkwnTech
UnkwnTech

Reputation: 90881

The simplest solution is to attempt to connect to the server and try to authenticate, if you get a bad authentication response from the server the credentials are bad.

Upvotes: 1

Related Questions