Forums / Setup & design / Outgoing email - no message when failure

Outgoing email - no message when failure

Author Message

Øivind Gulbrandsen

Sunday 20 March 2005 2:40:32 pm

If I send an email to f.ex. a nonexistent adresss from my ordinary email client I always get a message back that the email did not come through.

When sending emails from ez-publish (I use the mailinglist extension) I get no such messages when the email-sending does not succeed. That is a big problem because I can not be sure that my emails has been received...

Any solutions?

(I use the Sendmail option, SMTP does not work).

Best regards,
Øivind G.

Łukasz Serwatka

Wednesday 23 March 2005 1:20:28 am

Hi Øivind,

Check in e-mail source if header Return-Path is correct. This header is uses to notify sender about errors with delivering.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Øivind Gulbrandsen

Friday 25 March 2005 1:41:29 am

Thanks for answer.

I have checked the Return-path - and that is the one which is wrong (is set to a standard path from the service provider).

(Have now got the SMTP to work - so I have tested both SMTP and sendmail).

How can I set the Return-path to webmasters email address??? (Seems not affected by the AdminEmail or EmailSender settings in site.ini).

I am using release 3.4.2

Øivind

Øivind Gulbrandsen

Sunday 03 April 2005 1:19:58 pm

Nobody with experience or an idea on how to set the return-path???

Łukasz Serwatka

Sunday 03 April 2005 10:14:00 pm

Hi Øivind,

You will have to manualy add this header in mailinglist code.

This extension probadly uses lib/ezutils/classes/ezsmtp.php

In this file you find "Function which handles sending the mail. " with one of paramteres is "headers - Indexed array of headers, one header per array entry "

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Øivind Gulbrandsen

Monday 04 April 2005 2:03:10 am

Thanks.

I have looked at some of the programs - even if I am not a PHP programmer... For me it seems that it is the ezMail program that is used. The "setReceiver" function etc is called from the mailinglist program. In ezMail it is a function called setExtraHeaders, which I would presume is for the return-path etc. So I tried to modify the mailinglist program:

$mail = new eZMail();
$mail->setReceiver($email);
$mail->setSender($params['from']);
$mail->setSubject($subject);
$mail->setBody($result);
$mail->setExtraHeaders(array('Return-path','webmaster@hornet.no')); (this line is new...)
$mailResult = eZMailTransport::send($mail);

The program works - but I still do not get a new return-path in my email.

Any suggestions?

Łukasz Serwatka

Monday 04 April 2005 2:16:56 am

Hi,

Try with

$mail->setExtraHeader('Return-path','webmaster@hornet.no');

Which mailserver do you uses?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Øivind Gulbrandsen

Monday 04 April 2005 2:54:45 am

Same result...

My mailserver is mail.hornet.no.

Sendmail and SMTP is both working.

eZ debug

Timing: Jan 18 2025 14:50:47
Script start
Timing: Jan 18 2025 14:50:47
Module start 'content'
Timing: Jan 18 2025 14:50:49
Module end 'content'
Timing: Jan 18 2025 14:50:49
Script end

Main resources:

Total runtime1.4399 sec
Peak memory usage4,096.0000 KB
Database Queries209

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.8281180.8281
Module start 'content' 0.00551.3044 768.6563598.5078
Module end 'content' 1.30990.1300 1,367.1641341.0547
Script end 1.4399  1,708.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2594210.0002
Check MTime0.00140.0963210.0001
Mysql Total
Database connection0.00050.037410.0005
Mysqli_queries1.363694.69622090.0065
Looping result0.00190.13102070.0000
Template Total1.404197.520.7021
Template load0.00230.158920.0011
Template processing1.401897.353920.7009
Template load and register function0.00020.012810.0002
states
state_id_array0.00170.119010.0017
state_identifier_array0.00190.132420.0010
Override
Cache load0.00190.1338450.0000
Sytem overhead
Fetch class attribute can translate value0.00100.067630.0003
Fetch class attribute name0.00110.074390.0001
XML
Image XML parsing0.00090.065730.0003
class_abstraction
Instantiating content class attribute0.00000.0012110.0000
General
dbfile0.00580.4007290.0002
String conversion0.00000.000330.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs