1

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

sdolgy
  • 6,963
  • 3
  • 41
  • 61
MNR
  • 1,073
  • 7
  • 23
  • 37
  • what language do you want to develop this in? – sdolgy Jun 23 '11 at 13:39
  • k. in future, you should be more clear what language by properly filling in the tags and subject/body of the question so that you get the right people reading it. – sdolgy Jun 24 '11 at 05:41
  • Possible duplicate of http://stackoverflow.com/questions/4356659/how-to-test-connection-is-established-in-smtp-in-c-windows http://stackoverflow.com/questions/2426098/how-to-validate-smtp-credentials-before-sending-mail-in-c – Andrew Savinykh Jun 24 '11 at 06:31

1 Answers1

1

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.

UnkwnTech
  • 88,102
  • 65
  • 184
  • 229