Jump to content

PHP attach file to mail form


wgoldschagg

Recommended Posts

I've created a registration form where users can request registration documents.

 

The following code works and sends the email.  How do I attach a pdf file already on my server to the email?  The email code:

mail($_POST['Email'] , "Registration Confirmation", $message,
    "From: \"Absolute Angels Auto-Response\" <[email protected]>\r\n" .
     "X-Mailer: PHP/" . phpversion());

 

Any help would be appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/167605-php-attach-file-to-mail-form/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.