zytzagoo / smtp-validate-email

A PHP library for performing email addresses validation via SMTP
GNU General Public License v3.0
446 stars 157 forks source link

smtp authentication #14

Closed masihfathi closed 7 years ago

masihfathi commented 9 years ago

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)?

zytzagoo commented 9 years ago

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!

haffoudhi commented 9 years ago

anyone has the smtp authentication working with this code ?

haffoudhi commented 9 years ago

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 ?