Author Topic: No error - but mail is not delievered  (Read 961 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
No error - but mail is not delievered
on: Fri, 21. June 2002 - 16:05:00
I use:
Quote

    function mailTo ($fromName, $fromMail, $to, $subject, $body)
    {
        include("include/vlibMimeMail.php"); 

        $mail= new vlibMimeMail;
        $mail->to($to, 'Admin'); 
        $mail->from($fromMail, $fromName); 
        $mail->subject($subject); 
        $mail->body($body);

        $mail->send(); 
    }


And the script runs smoothly (no error), but the mail is not delievered. When I use the "normal" MAIL-Function everything works fine.

CU
Claus

PS: It does not matter if the code ist called by a function or not both things do not work.

releasedj

  • Guest
No error - but mail is not delievered
Reply #1 on: Sat, 22. June 2002 - 11:52:00
Try commenting out $mail->send(); and putting
echo $mail->get();

Then you can check exactly what's being passed to the mail function, if you like you can post the text to the forum and I'll take a look.

Regards,

Kelvin

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
No error - but mail is not delievered
Reply #2 on: Mon, 24. June 2002 - 11:44:00
This is the output. Perhaps I should change the Content-Type, because I want to send html-mails.

Code: [Select]
To: claus.vanbeek at gkd-rso.de <Admin>
From: phd at clausvb.de <PowerHelpDesk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: vlibMimeMail v2.1.0

Erstellt: 2002-06-2411:44<br>
 Beschreibung: test
<br />

<br />
case new
Last Edit: Thu, 08. March 2007 - 11:05:38 by ClausVB

releasedj

  • Guest
No error - but mail is not delievered
Reply #3 on: Mon, 24. June 2002 - 15:20:00
Hi Claus,

This is a bug with vlibMimeMail.
A new version of vLIB has been released to fix this, 3.0.2.

To add HTML you can use the htmlbody() function.

Let me know how you get on.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
No error - but mail is not delievered
Reply #4 on: Mon, 24. June 2002 - 17:15:00
It works now. Thank you so much!!!