| 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. <[email protected]>To: Zdena S. <[email protected]>
 changed to: 
From: <[email protected]>To: <[email protected]>
 Daniel S. |