K
K
koteus2011-05-03 19:37:24
SMTP
koteus, 2011-05-03 19:37:24

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

5 answer(s)
P
Puma Thailand, 2011-05-03
@opium

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.

T
Tsigulev Vitaly, 2011-05-03
@cigulev

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.

X
xdemon, 2011-05-03
@xdemon

finger?

I
IlVin, 2011-05-04
@IlVin

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.

K
koteus, 2011-05-03
@koteus

It seems that Swift Mailer checks the domain: http://swiftmailer.org/docs/failures-byreference , but my send method returns true even if the domain is not valid.
Maybe you need to somehow configure SMTP so that it checks the domain?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question