Need Mail attachements Help on phpMailer
Posted: Fri Jan 05, 2007 3:40 am
I’m using phpMailer to send emails. The user is entering the mail info by using a web form. The attachment is taken from a file field. The attachment dose not attach on a client machine (it works on the server). Part of the coding is below.
Can you help me to run this on a client machine…..?
Code: Select all
$File =$_POST['filefield']; // path comes as “C:/test/file.txt”
$mail->WordWrap = 50;
$mail->IsHTML(true);
$mail->Subject = "Here is the subject";
$mail->Body = "This is the HTML message body <b>in bold!</b>";
$mail->AddAttachment("$File");Can you help me to run this on a client machine…..?