The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problems with attachements and Exim when sending mails from postnuke

Discussion in 'E-mail Discussions' started by jsmoral, Jun 9, 2003.

  1. jsmoral

    jsmoral Registered

    Joined:
    Jun 9, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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:<911410600.68522@infofax.es>
    SMTP<< 250 <911410600.68522@infofax.es>... Recipient ok
    SMTP>> RCPT TO:<913271526@infofax.es>
    SMTP<< 250 <913271526@infofax.es>... 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
    ** 911410600.68522@infofax.es 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
    ** 913271526@infofax.es 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 nobody@dns1.marypaz.net
    -frozen 1055177589
    -local
    XX
    2
    911410600.68522@infofax.es
    913271526@infofax.es

    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: 911410600.68522@infofax.es, 913271526@infofax.es
    057 Subject: Presupuesto de Catering - El Catering - REF: 23
    031F From: "info@elcatering.com" <>
    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: nobody@dns1.marypaz.net
    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="911410600.68522@infofax.es, 913271526@infofax.es";
    $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="jsanchez@elcatering.com, juandaniel@servinet.net";
    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:
     
  2. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    Try to make sure that all lines finish with \r\n

    Also you have a bug here:
    X-Mailer: PHP/4.3.1MIME-Version: 1.0

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page