Author Topic: 2 mails => strange multiple "To: ..."  (Read 860 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
2 mails => strange multiple "To: ..."
on: Mon, 12. August 2002 - 13:14:00
I wrote the following script:

Code: [Select]

// first mail

$mail - to$adminMail, $hdName;

$mail - from$rowu_mail, $rowu_name;

$mail - subject$adminSubject;

$mail - htmlbody$body;

echo prebr;

echo htmlentities$mail-get;

echo /prebrbr;



$mail - clearTo;

  

// 2nd mail

$mail - to'[email protected]', 'Kunde, Test';

$mail - from$adminMail, $hdName;

$mail - subject$userSubject;

$mail - htmlbody$body;

echo prebr;

echo htmlentities$mail-get;

echo /prebrbr;



The first mail is no problem.

But the second is send 3 times:

---
To: "schul-PHD" <[email protected]>,Array,"Kunde, Test" <[email protected]>
Subject: [HelpDesk #23]: Ihr Case vom Mon, 12. Aug 2002 - 14:10
From: "schul-PHD" <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/mixed;
 boundary="--654f17a5f93a372ec2e350dc565d81ba"
Content-Transfer-Encoding: 7bit
X-Mailer: vlibMimeMail
---

I use "vLIB_3-0-5.zip" with the following line in vlibMimeMail:
// $Id vlib.vlibMimeMail.3.0.2 21/07/2002 $

What is not working?

Best regards,
Claus

[size=8][ This Message was edited by: ClausVB on 2002-08-12 13:19 ][/size]

[size=8][ This Message was edited by: ClausVB on 2002-08-13 11:49 ][/size]

releasedj

  • Guest
2 mails => strange multiple "To: ..."
Reply #1 on: Mon, 12. August 2002 - 16:31:00
duh, stupid me.

You'll see in vlibMimeMail.php that there are 3 functions, clearTo(), clearCc() and clearBcc(). On all 3 of them, the 1st line says something line this:
    $this->sendto[] = array();

.. this needs to be changed to:
    $this->sendto = array();

.. dropping the square brackets.

This will be fixed in 3.0.6 due out in the next week.

Thanks Claus,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
2 mails => strange multiple "To: ..."
Reply #2 on: Tue, 13. August 2002 - 11:47:00
I made the changes and it works now!

:smile:

Thanks!

releasedj

  • Guest
2 mails => strange multiple "To: ..."
Reply #3 on: Tue, 13. August 2002 - 12:23:00
Cool.