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]
AdminEmail=genri@i-b.com.ua
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]
AdminEmail=genri@i-b.com.ua
EmailSender=genri@i-b.com.ua
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( '"nshah2511@gmail.com"', 'nehal' ) );
$mail->from = new ezcMailAddress('nehal.b.shah.999@gmail.com','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=
AdminEmail=nehal.b.shah.999@gmail.com
EmailSender=nehal.b.shah.999@gmail.com

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.

eZ debug

Timing: Jan 18 2025 10:41:35
Script start
Timing: Jan 18 2025 10:41:36
Module start 'layout'
Timing: Jan 18 2025 10:41:36
Module start 'content'
Timing: Jan 18 2025 10:41:36
Module end 'content'
Timing: Jan 18 2025 10:41:36
Script end

Main resources:

Total runtime0.9754 sec
Peak memory usage4,096.0000 KB
Database Queries82

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0167 588.1641152.6563
Module start 'layout' 0.01670.0049 740.820339.5234
Module start 'content' 0.02160.9522 780.3438701.1016
Module end 'content' 0.97380.0016 1,481.445324.1094
Script end 0.9754  1,505.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4832160.0003
Check MTime0.00220.2273160.0001
Mysql Total
Database connection0.00510.525310.0051
Mysqli_queries0.863788.5403820.0105
Looping result0.00140.1444800.0000
Template Total0.912193.520.4561
Template load0.00270.275020.0013
Template processing0.909493.232120.4547
Template load and register function0.00010.011210.0001
states
state_id_array0.00200.209510.0020
state_identifier_array0.00180.186020.0009
Override
Cache load0.00260.26831030.0000
Sytem overhead
Fetch class attribute can translate value0.00090.092540.0002
Fetch class attribute name0.00110.1116120.0001
XML
Image XML parsing0.00130.135640.0003
class_abstraction
Instantiating content class attribute0.00000.0039170.0000
General
dbfile0.00090.0958210.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
18content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 47
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs