I just followed a tutorial and i can send attachments. But the hard coded file path is only can send, i.e;
$mail->AddAttachment("images/pdf/xyz.pdf");
i need to send the any chosen files.I did not get the path of chosen file.Please help me to move on....

Manikandan MurugesanPosted Aug 13, 2017, 8:37 PM
You should use one of the classes built for that, for example PEAR mail. For a bit more explanation, assuming we use just a plain text UTF8 content with the PDF file.
uniqboundaryshould be replace by some sort of unique string$fileTypeis the MIME type of your fileHere the code :
Gokhul VarmanPosted Aug 13, 2017, 9:46 AM
Kesavan KrishnanPosted Jul 31, 2017, 1:33 AM
Mari ShankariPosted Jul 29, 2017, 7:21 AM
Saafia NMPosted Jul 29, 2017, 6:56 AM
Mari ShankariPosted Jul 29, 2017, 6:52 AM