Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    1

    Default Problems with attachements and Exim when sending mails from postnuke

    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. #2
    Member
    Join Date
    Sep 2001
    Location
    Spain
    Posts
    779

    Default Re: Problems with attachements and Exim when sending mails from postnuke

    Originally posted by jsmoral
    Nonstandard SMTP line terminator.
    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:

Similar Threads & Tags
Similar threads

  1. Exim not sending mails to my localdomain
    By mirfan in forum E-mail Discussions
    Replies: 4
    Last Post: 11-26-2008, 09:08 AM
  2. Exim not sending mails
    By Chriz1977 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-26-2007, 05:40 AM
  3. Sending Attachements
    By mickalo in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-31-2006, 06:04 PM
  4. exim not sending mails to aol
    By mohan in forum New User Questions
    Replies: 1
    Last Post: 06-02-2005, 11:30 AM
  5. Problems sending mails...
    By Spokuz in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-11-2003, 04:38 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube