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
[email protected]
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 = '
[email protected]';
$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('
[email protected]');
$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";
}