Forums / Install & configuration / SMTP server don't accept email from EZ

SMTP server don't accept email from EZ

Author Message

Daniel Smrtka

Wednesday 14 April 2004 8:24:18 am

Please help me. I use EZ 3.3.4 on Win2K with Apache 1.3 web server. When I send any email from EZ, nothing was send to recipient. When I look into log on my email server (Pmail Mercury/32 v4.01a), this error is shown:

- - - -
Connection from 212.71.xx.xx, Wed Apr 14 17:01:02 2004
HELO ms.xx.xx
MAIL FROM:<Daniel <daniel@xx.cz>>
RCPT TO:<Zden&#283;k <info@xx.cz>>
Accepted unknown RCPT <Zdenek <info@xx.cz>> from 212.71.xx.xx. <--- !!!
DATA - 17 lines, 698 bytes.
QUIT
1 sec. elapsed, connection closed Wed Apr 14 17:01:03 2004
- - - -

I believe, that email header is wrong: other emails have address in format :

RCPT TO: Daniel <daniel@xx.cz>
not
RCPT TO: <Daniel <daniel@xx.cz>> (double <>)

Please, can anyone help me?

Lazaro Ferreira

Wednesday 14 April 2004 10:25:12 am

Hi,

do you manage to send emails through this email server ?

I mean, are you sure that the email server processing the EZP message, is working, i.e: with other clients

Lazaro
http://www.mzbusiness.com

Daniel Smrtka

Thursday 15 April 2004 2:07:02 am

> do you manage to send emails through this email server ?

Yes, Mercury/32 (from Pegasus mail - www.pmail.com) is my e-mail server.

> I mean, are you sure that the email server processing the EZP message, is working, i.e: > with other clients

I'am sure that EZP generate emails. But e-mails header (line From: and To:) is wrong (happen). E-mail is then redirect to postmaster, because e-mail server don't understand addresses.

Now I make this little change in \lib\ezutils\classes\ezmail.php:

- - - -

function composeEmailName( $item, $key = false )
 {
  if ( $key !== false and isset( $item[$key] ) )
   return $item[$key];
  if ( $item['name'] )
   /*  $text = $item['name'] . ' <' . $item['email'] . '>';  */  <--- original
   $text = $item['email'];                                       <--- new
  else
   $text = $item['email'];
  return $text;
 }

- - - -

After this change email is transported to recipients. Only one change for the worse is in "sender" and "recipients" in e-mail client as shown:

From: Daniel S. <daniel@xx.cz>
To: Zdena S. <zdena@xx.cz>

changed to:

From: <daniel@xx.cz>
To: <zdena@xx.cz>

Daniel S.

Daniel Smrtka

Thursday 15 April 2004 3:01:59 am

Yes, it works now well! I changed SMTP setting in EZP from my e-mail server (Mercury/32, V4.01a on Win2K) to linux SendMail server on my internet provider, and everything is OK.

My note to others: EZP is not compatible with Mercury/32 smtp mail server.

Thanks everybody, Daniel.

Lazaro Ferreira

Thursday 15 April 2004 9:37:50 am

Hi,

good to hear you solve it, it would be nice if you report this bug at EZP bug reports

http://www.ez.no/community/bug_reports

That's the way of getting ezp better and better

Lazaro

Lazaro
http://www.mzbusiness.com

Derick Rethans

Wednesday 28 April 2004 4:58:00 am

This is actually a bug in PHP where the mail() function on Windows does not strip those things. See: http://bugs.php.net/bug.php?id=28038

eZ debug

Timing: Jan 31 2025 06:24:30
Script start
Timing: Jan 31 2025 06:24:30
Module start 'content'
Timing: Jan 31 2025 06:24:30
Module end 'content'
Timing: Jan 31 2025 06:24:30
Script end

Main resources:

Total runtime0.3485 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.0703180.8203
Module start 'content' 0.00780.0045 768.890698.0547
Module end 'content' 0.01230.3360 866.9453527.8281
Script end 0.3484  1,394.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.9295200.0002
Check MTime0.00140.3939200.0001
Mysql Total
Database connection0.00070.196310.0007
Mysqli_queries0.299285.85861410.0021
Looping result0.00150.44381390.0000
Template Total0.335796.410.3357
Template load0.00080.237310.0008
Template processing0.334996.111210.3349
Override
Cache load0.00060.169310.0006
Sytem overhead
Fetch class attribute can translate value0.00090.272110.0009
XML
Image XML parsing0.00040.109910.0004
General
dbfile0.00631.7984200.0003
String conversion0.00000.001730.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs