![Picture of lalit Picture of lalit](/graphics/unknown.gif)
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";
}