Error sending SMTP mail: sender not yet given, pls HELP

Author Message

Genri Moshkovich

Wednesday 20 September 2006 1:25:09 pm

I am trying to use a smtp server in my forum site to send standard "new user is registered" authentification. My site.ini looks like:
[MailSettings]
[email protected]
Transport=SMTP
TransportServer=195.39.xxx.xxx
TransportPort=25
TransportUser=some_user
TransportPassword=some_password

But when I register a new user I don't get any e-mail about it. So I looked into error.log I saw this:
[ Sep 20 2006 23:20:12 ] [82.207.6.93] eZSMTPTransport::sendMail():
Error sending SMTP mail: sender not yet given
[ Sep 20 2006 23:20:12 ] [82.207.6.93] eZSMTPTransport::sendMail():
Error sending SMTP mail: sender not yet given
[ Sep 20 2006 23:20:14 ] [82.207.6.93] index:
Undefined module: favicon.ico
[ Sep 20 2006 23:20:14 ] [82.207.6.93] error/view.php:
Error ocurred using URI: /favicon.ico

What's the problem? May be it's because my SMTP server needs RFC-authentification?
How can I fix it?

Thanks, to everybody who'll try to help me!!!

Best regards,
Genri Moshkovich

Claudia Kosny

Wednesday 20 September 2006 1:40:55 pm

Hello Genri

Have a look at the mailsettings in site.ini. There is also an entry for EmailSender there.
[MailSettings]
AdminEmail=
EmailSender=

I thought that this defaults to the admin email if not set but it looks like this is not the case. So add the correct email address in there and try again.

Greetings from Luxembourg

Claudia

Genri Moshkovich

Wednesday 20 September 2006 1:52:59 pm

Thanks, Claudia, I did it, so my site.ini now looks like:

[MailSettings]
[email protected]
[email protected]
Transport=SMTP
TransportServer=195.39.xxx.xxx
TransportPort=25
TransportUser=user
TransportPassword=password

But it still doesn't work...

Best regards,
Genri Moshkovich

Genri Moshkovich

Wednesday 20 September 2006 1:56:00 pm

Did someone use a smtp server(with RFC-authentification) in EZ?

Best regards,
Genri Moshkovich

Claudia Kosny

Wednesday 20 September 2006 2:20:22 pm

Hi Genri

I have no clue about SMTP servers at all so no idea what is happening there. Unfortuntely I think that half of Europe is asleep by now so if it is really urgent have a look at the file \lib\ezutils\classes\ezsmtp.php maybe you can find it out yourself. Especially the function send() and send_data look interesting. Check the output and maybe compare it to other emails you sent via a non-EZ-script if you have something like this.

What version of EZ do you use anyway?

Claudia

Genri Moshkovich

Wednesday 20 September 2006 2:39:43 pm

Thanks, Claudia! So, why don't you sleep and what time is in Luxenburg?
On this site I use:
ez publish 3.8.4.
Apache/1.3.34 (Unix) PHP/4.4.4

Best regards,
Genri Moshkovich

Genri Moshkovich

Wednesday 20 September 2006 3:03:32 pm

I tried to use sendmail, now I don't get any errors in error.log, but I still don't get any e-mails about new user registration. It's some kind of mystic:)

Best regards,
Genri Moshkovich

Genri Moshkovich

Wednesday 20 September 2006 3:21:06 pm

I talked to my hosting support, so they allowed me to use sendmail.

Now everything works!!!

Thanks Claudia for trying to help me!

Best regards,
Genri Moshkovich

Bruce Morrison

Wednesday 20 September 2006 7:52:38 pm

Hi Genri

This looks like it would be caused by a bug introduced in 3.8.4
http://ez.no/bugs/view/9030

The from address is likly to be incorrect and may not be delivered by the mail system.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

nehal shah

Monday 22 November 2010 11:07:20 pm

Hi guys

i have the same problem, when new user registered it doesn't show any error but i dont get any emails.

i have the following code,

$mail = new ezcMailComposer();

$subject = "Example of an HTML email with attachments";
$plainText = "Here is the text version of the mail. This is displayed if the client can not understand HTML";
$htmlText = "<html>Here is the HTML version of your mail with an image:</html>";

$mail->addTo( new ezcMailAddress( '"[email protected]"', 'nehal' ) );
$mail->from = new ezcMailAddress('[email protected]','Nehal Shah');
$mail->subject = $subject;
$mail->plainText = $plainText;
$mail->htmlText = $htmlText;
$mail->build();
$transport = new ezcMailMtaTransport();
$transport->send( $mail );

in site.ini the code is

[MailSettings]
Transport=SMTP
TransportServer=sendmail.youtele.com
TransportUser=
TransportPassword=
TransportPort=
[email protected]
[email protected]

Please help me

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.