zytzagoo / smtp-validate-email

A PHP library for performing email addresses validation via SMTP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smtp authentication

masihfathi opened this issue · comments

I want to write a script to validate a list with multi smtp, How i can connect smtp server with authentication ( I mean host, user, password and email)?

Not supported out of the box currently.

The code to support it should not be that complicated.
Maybe look at PHPMailer or similar libraries for inspiration and contribute back if/when you build it!

anyone has the smtp authentication working with this code ?

i m confused about something, without authentication the code will connect the socket to receiver host directly, which in some hosts is not permitted, you need to login first then send emails. So we can't connect to receiver host with socket, we need to connect to sender host with socket.
My question: is it possible to validate emails in such case when we can't use socket to connect to another host directly ?