wgoldschagg Posted July 27, 2009 Share Posted July 27, 2009 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 More sharing options...
patrickmvi Posted July 27, 2009 Share Posted July 27, 2009 Use a mailer class like PHPMailer. It works really well. Here's where you can get it: http://sourceforge.net/projects/phpmailer/ Link to comment https://forums.phpfreaks.com/topic/167605-php-attach-file-to-mail-form/#findComment-883855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.