Skip to main content
Inspiring
September 18, 2020
解決済み

PHP Form With Attachments Tutorial

  • September 18, 2020
  • 返信数 2.
  • 515 ビュー

I'm trying to find recent tutorials for building a contact form using PHP that also has the ability to include attached files like docx or pdf when the user submits the contact form.

 

Thanks in advance for any assistance.

このトピックへの返信は締め切られました。
解決に役立った回答 Nancy OShea

The PHPMailer library on GitHub can securely process mail with attachments and a good deal more.

https://github.com/PHPMailer/PHPMailer

 

Example Send File Upload

https://github.com/PHPMailer/PHPMailer/blob/master/examples/send_file_upload.phps

 

返信数 2

Nancy OShea
Community Expert
Nancy OSheaCommunity Expert解決!
Community Expert
September 18, 2020

The PHPMailer library on GitHub can securely process mail with attachments and a good deal more.

https://github.com/PHPMailer/PHPMailer

 

Example Send File Upload

https://github.com/PHPMailer/PHPMailer/blob/master/examples/send_file_upload.phps

 

Nancy O'Shea— Product User & Community Expert
RR456作成者
Inspiring
September 18, 2020

Thanks Nancy for the links. It's a great help.

Community Expert
September 18, 2020

Are you utilizing a database or do you want one that attaches to an email?

RR456作成者
Inspiring
September 18, 2020

Hi Ben,

 

Thanks for the reply. No, I'm not utilizing a database in that the attachment would be dropped in, I assume, a folder on our server for us to get access to in some manner. Hope that makes sense.