Forums / Install & configuration / Error sending SMTP mail: sender not yet given, pls HELP

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

eZ debug

Timing: Jan 18 2025 03:07:39
Script start
Timing: Jan 18 2025 03:07:39
Module start 'content'
Timing: Jan 18 2025 03:07:40
Module end 'content'
Timing: Jan 18 2025 03:07:40
Script end

Main resources:

Total runtime0.8080 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 591.1563180.8047
Module start 'content' 0.00510.6643 771.9609706.2109
Module end 'content' 0.66940.1385 1,478.1719344.4375
Script end 0.8080  1,822.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5060210.0002
Check MTime0.00160.1982210.0001
Mysql Total
Database connection0.00070.081410.0007
Mysqli_queries0.706087.37232190.0032
Looping result0.00220.27792170.0000
Template Total0.773595.720.3868
Template load0.00310.378920.0015
Template processing0.770595.351120.3852
Template load and register function0.00010.013810.0001
states
state_id_array0.00210.265510.0021
state_identifier_array0.00200.243920.0010
Override
Cache load0.00260.32001030.0000
Sytem overhead
Fetch class attribute can translate value0.00100.123150.0002
Fetch class attribute name0.00130.1551120.0001
XML
Image XML parsing0.00240.292250.0005
class_abstraction
Instantiating content class attribute0.00000.0032170.0000
General
dbfile0.00470.5855320.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 47
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs