Forums / Setup & design / what does this message mean?
Alessandro Cipriani
Wednesday 21 July 2004 5:39:57 am
hi all i'm triyng to send the 3 mails when an user register himself to my siteonly 2 mails are sended (the information account to the user and the mail to the administrator), while the activate account email isn't sended to the user
in the debug i get:
Error sending SMTP mail: need MAIL From: first.
in the ezsmpttransport.php file. the code is:
include_once( "lib/ezutils/classes/ezsmtp.php" ); $smtp = smtp::connect( $parameters ); if ( $smtp ) { $result = $smtp->send( $sendData ); $mailSent = true; if ( isset( $smtp->errors[0] ) ) { eZDebug::writeError( "Error sending SMTP mail: " . $smtp->errors[0], "eZSMTPTransport::sendMail()" ); $mailSent = false; } $smtp->quit(); } else $mailSent = false; return $mailSent;
any hint?
best regardsalessandro
Maarten Holland
Thursday 22 July 2004 1:34:33 am
I can only make some guesses:
"Error sending SMTP mail: need MAIL From: first." makes me think perhaps the order in which the e-mail is composed is wrong? (Perhaps first the recipient and then the sender, in stead of the other way around).
Another thing could be that there is no sender in this specific mail?
Thursday 22 July 2004 2:14:12 am
thanx it was an error like you saidi didn't add any sender
thank you best regardsalessandro