Closed leelennie closed 6 years ago
Your second example looks more correct if your intention is to send the uploaded file via e-mail as soon as it is uploaded.
Your first example would be valid if you want to separate the file upload portion from, say, a separate form submission and then bring the separate pieces together when the user submits the form. It's more complicated to do this and might involve using PHP sessions depending on the use-case.
Also worth noting: https://github.com/cubiclesoft/ultimate-email
Closing issue. Issue trackers are intended for reporting bugs in software. General purpose programming help is better suited to forums, mailing lists, and Stack Exchange.
Hi Sir/Mdm,
I'm using phpmailler to send email with attachments. I'm wondering which part should I input the phpmailer code?
I'm trying to understand from Admin Pack (admin.php) but not sure if I'm doing it correctly.
Or shall I put it inside the