File attachment with PHPMailer

前端 未结 2 1374
无人共我
无人共我 2021-01-05 03:08

I have an HTML form with the option to upload a file.
I would like then to send that file as an attachment to the email address along with the rest of the form data.

2条回答
  •  逝去的感伤
    2021-01-05 03:28

    $mail->addAttachment("uploads/".$file_name);
    

    Just use above code before php mailer send function

提交回复
热议问题