Send File Attachment from Form Using phpMailer and PHP

后端 未结 8 1064
予麋鹿
予麋鹿 2020-11-22 14:09

I have a form on example.com/contact-us.php that looks like this (simplified):

8条回答
  •  南方客
    南方客 (楼主)
    2020-11-22 14:41

    This code help me in Attachment sending....

    $mail->AddAttachment($_FILES['file']['tmp_name'], $_FILES['file']['name']);
    

    Replace your AddAttachment(...) Code with above code

提交回复
热议问题