Author Topic: Double attachment  (Read 1645 times)

0 Members and 1 Guest are viewing this topic.

mnbrampton

  • Guest
Double attachment
on: Sun, 25. January 2004 - 01:00:42
I installed vlib, then tried out the test given in the documentation.  Everything worked fine, except that the first time, there was one attachment of the vlib documentation, and one of the file I specified.  The second time, there were two attachments, both of the file I specified.  Have I got something wrong?

releasedj

  • Guest
Double attachment
Reply #1 on: Wed, 04. February 2004 - 17:37:57
Can you post an example script?

mnbrampton

  • Guest
Double attachment
Reply #2 on: Wed, 04. February 2004 - 21:56:20
Yes, no problem.  Here it is, except I've changed all the email addresses to avoid spam.  And the absolute path.

<?php
include "vlib/vlibMimeMail.php";
$htmlbody = "<html>
<body>
Hello test!...

</body>
</html>";
$mail = new vlibMimeMail; // create the mail
$mail->to('[email protected]', 'Martin Brampton');
$mail->from('[email protected]', 'Martin Brampton');
$mail->subject("Vlib mail sending");
$mail->body("Hello test!... in plain text"); // set the body in plain text
// $mail->htmlBody($htmlbody); // set the body in html format
$mail->cc("[email protected]", 'Martin at Black Sheep Research');
$mail->bcc("[email protected]", 'Martin Lists mailbox');
$mail->priority(3); // set the priority to Highest
$mail->attach("/home/splod/http/configuration.php"); // attach a file
$mail->send(); // send the mail
print("Message sent:<pre>".$mail->get()."</pre>");
?>

releasedj

  • Guest
Double attachment
Reply #3 on: Thu, 05. February 2004 - 10:57:09
Could you send me the result of $mail->get(); to:

vlib at activefish dot com

Thanks,

Kelvin