Login   Register  
PHP Classes
elePHPant
Icontem

PHPmailer class attachement problem

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHPMailer  >  All threads  >  PHPmailer class attachement problem  >  (Un) Subscribe thread alerts  
Subject:PHPmailer class attachement problem
Summary:Problem with multiple attachement
Messages:1
Author:lalit
Date:2008-06-22 03:24:33
 

  1. PHPmailer class attachement problem   Reply   Report abuse  
Picture of lalit
lalit
2008-06-22 03:24:33
Hi all My code is similar to this
When I attached mutiple file then I always get only single file as attachement (i.e only Ist one). Can anyone help me how to resolve this problem
(Note $mailsend->AddAttachment always return true)

Reg

Lalit shakya
opposite800@gmail.com


require('config.php');
require_once($FILE_DIR.'DBManager.class.php');
require_once($FILE_DIR.'File.class.php');
require_once($FILE_DIR.'class.phpmailer.php');
require_once($FILE_DIR.'class.smtp.php');
$mailsend = new phpmailer();
$mailsend->From = 'lalit@bussiness4u.com';
$mailsend->FromName = 'lalit';
$mailsend->Host = 'localhost';
$mailsend->Port = 25;
$mailsend->Subject = "hello";
$mailsend->WordWrap = 70;
$mailsend->IsHTML(true);
$mailsend->Body = "test mail";
$mailsend->Timeout = 45;
$mailsend->AddAddress('opposite800@gmail.com');
$mailsend->AddAttachment("/home/users/web/b1827/sl.ervijaymaurya/public_html/test.txt");

$mailsend->AddAttachment("/home/users/web/b1827/sl.ervijaymaurya/public_html/CC100Apr08.txt");
if($mailsend->Send()) {

echo "aaaaaaaaaaaaaaa";
}