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.