CanMan2004 Posted August 22, 2006 Share Posted August 22, 2006 Hi allI have a simple php email code[code]$to = '[email protected]';$subject = 'test';$headers = 'From: NGRS ([email protected])' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion();$message = 'test';mail($to, $subject, $message, $headers);[/code]I want to attach a pdf file to the email that is sent, the file is stored on my server.Can anyone help? I've tried a few codes and examples on some sites, but doesnt seem to work with what i've tried.Any help would be greatThanks in advanceDave Link to comment https://forums.phpfreaks.com/topic/18329-php-email/ Share on other sites More sharing options...
Jeremysr Posted August 22, 2006 Share Posted August 22, 2006 I don't know how to do that.. but there's some information about it here: http://ca3.php.net/manual/en/ref.mail.phpJust press Ctrl+F and search for "attach" on that page. Link to comment https://forums.phpfreaks.com/topic/18329-php-email/#findComment-78754 Share on other sites More sharing options...
SharkBait Posted August 22, 2006 Share Posted August 22, 2006 I has a similar question:http://www.phpfreaks.com/forums/index.php/topic,103450.0.htmlThere is a link there to information about creating emails with attachment via PHP. Link to comment https://forums.phpfreaks.com/topic/18329-php-email/#findComment-78766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.