Answer the question
In order to leave comments, you need to log in
How to know if an e-mail address really exists (Swift Mailer)
When registering on the site, you must complete the verification procedure via e-mail (I use Kohana 3, Swift Mailer, SMTP).
Is there any way to catch an error in Swift Mailer when sending an email to display a message like "The e-mail address you entered does not exist"?
Answer the question
In order to leave comments, you need to log in
Well, write a script that emulates sending and catches responses, one problem is that different servers respond differently to the account address does not exist.
Is it possible to check the domain for the presence of MX records, and it will not be possible to find out for 100% whether there is such an email or not for all servers.
Using the SMTP protocol, you can reach the
RCPT TO phase
and see what the server will answer.
But this does not mean that the address exists. This means that the SMTP server is ready to receive a letter from you for the specified Email.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question