Problems with attachements and Exim when sending mails from postnuke

jsmoral

Registered
Jun 9, 2003
1
0
151
Hi there,
Le me explain the problem we are experiencing:

* We have a Postnuke Portal and in 1 point we send and email (the same content) but in the first email we send it attached and in the second one just as a typical mail (please find the code below).

* The thing is that in the first case the mail is not received by the recepients but in the second case it's succesful.

* In the first case we can get the following error in email server logs:
**************************************
Message 19POeD-0004M3-00 is no longer frozen
delivering message 19POeD-0004M3-00
Connecting to mx.infoe.es [213.200.103.150.25] ... connected
SMTP<< 220 intmail02.infoe.es SMTP; Mon, 09 Jun 2003 19:06:38 +0200
SMTP>> EHLO dns1.marypaz.net
SMTP<< 250 intmail02.infoe.es Hello
SMTP>> MAIL FROM:<>
SMTP<< 250 <>... Sender ok
SMTP>> RCPT TO:<[email protected]>
SMTP<< 250 <[email protected]>... Recipient ok
SMTP>> RCPT TO:<[email protected]>
SMTP<< 250 <[email protected]>... Recipient ok
SMTP>> DATA
SMTP<< 354 Enter mail, end with "." on a line by itself
SMTP>> writing message and terminating "."
SMTP<< 550 Requested action not taken: Nonstandard SMTP line terminator.
SMTP>> QUIT
LOG: 0 MAIN
** [email protected] R=lookuphost T=remote_smtp: SMTP error from remote mailer after end of data: host mx.infoe.es [213.200.103.150]: 550 Requested action not taken: Nonstandard SMTP line terminator.
LOG: 0 MAIN
** [email protected] R=lookuphost T=remote_smtp: SMTP error from remote mailer after end of data: host mx.infoe.es [213.200.103.150]: 550 Requested action not taken: Nonstandard SMTP line terminator.
LOG: 0 MAIN
Frozen (message created with -f <>)
*************************************

and the original message is:
*************************************
19POeD-0004M3-00-H
nobody 99 99
<>
1055172805 0
-ident nobody
-received_protocol local
-body_linecount 33
-auth_id nobody
-auth_sender [email protected]
-frozen 1055177589
-local
XX
2
[email protected]
[email protected]

122P Received: from nobody by dns1.marypaz.net with local (Exim 3.36 #1)
id 19POeD-0004M3-00; Mon, 09 Jun 2003 17:33:25 +0200
053T To: [email protected], [email protected]
057 Subject: Presupuesto de Catering - El Catering - REF: 23
031F From: "[email protected]" <>
038 X-Mailer: PHP/4.3.1MIME-Version: 1.0
137 Content-Type: application/txt; name=Catering_Offer_23.txt; Content-Disposition: attachment; Content-Transfer-Encoding: quoted-printable
049I Message-Id:
042* X-rewrote-sender: [email protected]
038 Date: Mon, 09 Jun 2003 17:33:25 +0200

19POeD-0004M3-00-D

-----------------------------

DE: EL CATERING
FAX DE EL CATERING: 911410600
PARA: PROVEEDOR
FECHA: 09/06/2003 17:33:25

ASUNTO: Presupuesto de Catering - El Catering - REF: 23
-----------------------------

Hola,
El siguiente presupuesto de un menú predefinido, ha sido solicitado por un cliente de El Catering.

DATOS DEL MENU:
============
MENU BÁSICO

DATOS DEL SERVICIO:
==================
· Dia: 1 de 9 de 2003
· Hora: 16:00 AM
· Dirección del Catering: Luisa de Carvajal 24, / 28037 Madrid
· Número de comensales: 25
· Tipo de envento: Boda
· Duración aproximada del evento: 1 horas
· Comentarios del servicio:
Esto es una prueba de FAX

Saludos,
Equipo de El Catering

*************************************

The code for sending emails is:
Mail 1 (wrong one)
==============
$fmail="[email protected], [email protected]";
$headers="From: \"$yname\" <$ymail>\nX-Mailer: PHP/".phpversion();
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: application/txt; name=Catering_Offer_23.txt; Content-Disposition: attachment; Content-Transfer-Encoding: quoted-printable\r\n";
pnMail($fmail, $subject, $message, $headers);

Mail 2 (correct one)
=============
$fmail="[email protected], [email protected]";
pnMail($fmail, $subject, $message, "From: \"$yname\" <$ymail>\nX-Mailer: PHP/" .phpversion());

Please can anyone help?

By the way: The same code, works perfectly with sendmail

Thanks so much
Cheers

cPanel.net Support Ticket Number: