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

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 20:59:31
Script start
Timing: Jan 18 2025 20:59:31
Module start 'layout'
Timing: Jan 18 2025 20:59:31
Module start 'content'
Timing: Jan 18 2025 20:59:32
Module end 'content'
Timing: Jan 18 2025 20:59:32
Script end

Main resources:

Total runtime0.8035 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1719152.6406
Module start 'layout' 0.00530.0036 741.812539.4922
Module start 'content' 0.00890.7931 781.3047606.0859
Module end 'content' 0.80210.0014 1,387.390616.1406
Script end 0.8034  1,403.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3871160.0002
Check MTime0.00130.1650160.0001
Mysql Total
Database connection0.00090.113910.0009
Mysqli_queries0.742392.3900680.0109
Looping result0.00080.1045660.0000
Template Total0.766395.420.3831
Template load0.00180.229120.0009
Template processing0.764495.141220.3822
Template load and register function0.00010.016810.0001
states
state_id_array0.00120.153910.0012
state_identifier_array0.00120.144220.0006
Override
Cache load0.00160.1962520.0000
Sytem overhead
Fetch class attribute can translate value0.00050.068330.0002
Fetch class attribute name0.00120.155170.0002
XML
Image XML parsing0.00070.092530.0002
class_abstraction
Instantiating content class attribute0.00000.001970.0000
General
dbfile0.00150.1831160.0001
String conversion0.00000.001140.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
6content/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
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs