PHP Classes

How to connect the script via SMTP

Recommend this page to a friend!

      PHP Email validation  >  All threads  >  How to connect the script via SMTP  >  (Un) Subscribe thread alerts  
Subject:How to connect the script via SMTP
Summary:How to connect the script via SMTP
Messages:6
Author:Dipen Baskaran
Date:2014-12-03 06:31:19
 

  1. How to connect the script via SMTP   Reply   Report abuse  
Picture of Dipen Baskaran Dipen Baskaran - 2014-12-03 06:31:19
Seems to be its sending the message through localhost.

Is that possible to connect the email_validation script through SMTP to send the emails for verification.

Please let me know

  2. Re: How to connect the script via SMTP   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-12-03 21:38:53 - In reply to message 1 from Dipen Baskaran
No the class does not send messages. It just simulates a delivery of a message to the SMTP server of the domain of the email address being validated.

It does not make sense to simulate the delivery to a different SMTP server, then you would not be validating if the destination SMTP server would accept the message.

  3. Re: How to connect the script via SMTP   Reply   Report abuse  
Picture of Bhavik Hingrajia Bhavik Hingrajia - 2014-12-04 05:14:03 - In reply to message 2 from Manuel Lemos
Hi

but if we keep verifying emails from single IP then won't IP be blacklisted? or blocked by the receiver server or firewall?

  4. Re: How to connect the script via SMTP   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-12-04 06:19:40 - In reply to message 3 from Bhavik Hingrajia
You need to validate email addresses from the same IP address that will send the messages.

The class does the same as a real mail server when it sends email messages, except that it does not finish sending the message. If you get blocked for validating many email addresses, you would be blocked as well if you actually send the messages from the same machine.

  5. Re: How to connect the script via SMTP   Reply   Report abuse  
Picture of Bhavik Hingrajia Bhavik Hingrajia - 2014-12-04 06:39:04 - In reply to message 4 from Manuel Lemos
does that mean if I run only this script ( no emailing ) from single IP, the IP will not get blocked?

  6. Re: How to connect the script via SMTP   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-12-04 07:07:52 - In reply to message 5 from Bhavik Hingrajia
No, what I meant, is that this script emulates email sending, so if you get blocked by a destination server for sending email, you can also get blocked for using this class. If you are not blocked for sending email, you should not get blocked for using this class from the same IP address.