Author Topic: One Bug Fixed and One problem  (Read 2923 times)

Offline tomcontr

  • Newbie
  • *
  • Posts: 2
One Bug Fixed and One problem
« on: October 16, 2007, 01:54:17 PM »
FIRST PROBLEM

I found a bug, or maybe its not a bug, but at least I had a problem and I fix it.

In the File sendmail.inc line 336 we have:

Code: [Select]
$sent = smtp_mail($from, $a_recipients, $MAIL_MIME->txtHeaders($send_headers);, $msg_body, $smtp_response);
So when I uses the SMTP option to send emails, that line was givingme this problem:

Quote
[15-Oct-2007 17:08:18] PHP Fatal error: Only variables can be passed by reference in /usr/local/apache2/htdocs/webmail/program/steps/mail/sendmail.inc on line 336

What I did to fix it:

Code: [Select]
$aa = $MAIL_MIME->txtHeaders($send_headers);
$sent = smtp_mail($from, $a_recipients, $aa, $msg_body, $smtp_response);


By the way Im using PHP 5.0.5
I hope this can help someone.

SECOND PROBLEM

In the oder hand I still have a problem with a different thing.
I have this email:

Quote
Return-path:
Envelope-to: myuser@mailhost.cl
Delivery-date: Tue, 16 Oct 2007 08:45:54 -0700
Received: from localhost ([127.0.0.1]:35077 helo=ip-208-121-21-33.ip.secureserver.net)
   by ip-208-121-21-33.ip.secureserver.net with esmtps (TLSv1:AES256-SHA:256)
   (Exim 4.63)
   (envelope-from )
   id 1IhocD-0000u9-Om
   for myuser@mailhost.cl; Tue, 16 Oct 2007 08:45:54 -0700
Received: (from asterisk@localhost)
   by ip-208-121-21-33.ip.secureserver.net (8.14.1/8.14.1/Submit) id l9GFjrvu003477;
   Tue, 16 Oct 2007 08:45:53 -0700
Date: Tue, 16 Oct 2007 08:45:53 -0700
Message-Id: <200710161545.l9GFjrvu003477@ip-208-121-21-33.ip.secureserver.net>
To: myuser@mailhost.cl
Subject: Lan Virtual - Inscripción de un nuevo piloto
From:Marcelo


Lan Virtual - Inscripción de un nuevo piloto ,


Callsign: LAN1893
Nombre: Marcelo
Apellidos: Cantergiani
Edad: 1963-04-11
Pais: CL
Ciudad: Santiago
Tiempo Volando en Flight Simulator: 2 años
Pid: 1036841
Versión de simulador que usa: FS 2006
Ocupación: Ingeniero
Como conociste a Lan Virtual.cl: por ACC Virtual
E-mail: marcelo.cantergiani@123.cl

The problem is that when I open the mail using RoundCube, I can only see up to this part:

Quote
Lan Virtual - Inscripci

Any idea?

I hope someone can help me.

Thanks in advance

Regards

Tomas.