How do I authenticate that username,password or smtpserver is wrong in mail smpt server
-
Hi All, In my website there is facility that user can send mail using it own email SMTP setting. some user is sending mail success fully but some facing problem for this there is option in config page in which user have to enter his SMTP setting. And also there is test button when users press a test button and if any wrong entry (username, password, smtpServer) then I want to show pop message accordingly. Is any way in which we can identified that what is wrong entry (username, password or mail server) because I want to give message like "wrong username or wrong SMTP server? Thanks
-
Hi All, In my website there is facility that user can send mail using it own email SMTP setting. some user is sending mail success fully but some facing problem for this there is option in config page in which user have to enter his SMTP setting. And also there is test button when users press a test button and if any wrong entry (username, password, smtpServer) then I want to show pop message accordingly. Is any way in which we can identified that what is wrong entry (username, password or mail server) because I want to give message like "wrong username or wrong SMTP server? Thanks
There isn't really anyway to check. For instance, in a hosting environment two SMTP servers could be 10.54.16.10 and 10.54.16.20. If they enter the former when they should using the latter, how can tell the difference? It is a valid address, just the not the correct one for them.
I know the language. I've read a book. - _Madmatt
-
Hi All, In my website there is facility that user can send mail using it own email SMTP setting. some user is sending mail success fully but some facing problem for this there is option in config page in which user have to enter his SMTP setting. And also there is test button when users press a test button and if any wrong entry (username, password, smtpServer) then I want to show pop message accordingly. Is any way in which we can identified that what is wrong entry (username, password or mail server) because I want to give message like "wrong username or wrong SMTP server? Thanks
-
Hi All, In my website there is facility that user can send mail using it own email SMTP setting. some user is sending mail success fully but some facing problem for this there is option in config page in which user have to enter his SMTP setting. And also there is test button when users press a test button and if any wrong entry (username, password, smtpServer) then I want to show pop message accordingly. Is any way in which we can identified that what is wrong entry (username, password or mail server) because I want to give message like "wrong username or wrong SMTP server? Thanks
Hi Samarjeet, If you give wrong server entry, however It'll give an error like "Relay access denied on 5.7.xx" like that and if u give a wrong credentials it'll throw an error like "Could not connect to the host...". From these errors you can show your custom message to the user. I hope u understand it :thumbsup:.
Rajendra Prasad Panchati .Net/Sharepoint Software Enginner, Hyderabad.