PHP Classes

Invalid Email Address

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Invalid Email Address  >  (Un) Subscribe thread alerts  
Subject:Invalid Email Address
Summary:Hotmail error: Invalid Email Address
Messages:2
Author:121212
Date:2011-12-22 16:34:46
Update:2011-12-23 01:42:00
 

  1. Invalid Email Address   Reply   Report abuse  
Picture of 121212 121212 - 2011-12-22 16:34:46
Hi!
Good job but it doesnt work on hotmail:

$smtp=new smtp_class;
$smtp->host_port=25;
$smtp->host_name="smtp.live.com";
$smtp->user="$email_decrypt";
$smtp->password="$pass_decrypt";
$smtp->ssl=0;
$smtp->start_tls=1;
$from = "probandocuenta@hotmail.com";
$subject = "Hola!";
$smtp->timeout=2;
$smtp->debug=1;
$smtp->workstation="";
$smtp->authentication_mechanism="";
$smtp->realm="";

S 235 2.7.0 Authentication succeeded
C MAIL FROM:<>
C RCPT TO:<joxxxx_gr@hotmail.com>
C RCPT TO:<probandoxxxx3@hotmail.com>
C DATA
S 501 5.5.4 Invalid Email address


The error Invalid Email Address appears always.
The from mail and recepeints mails exist!

How can i fix it?





  2. Re: Invalid Email Address   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-12-23 01:42:00 - In reply to message 1 from 121212
It seems the sender address is missing at least in your log dump. If you really missed it, you are not passing the send address correctly to the class.

Keep in mind that the SMTP protocol does not look at the message headers. So the sender address needs to be passed explicitly to the class.