CanMan2004 Posted August 22, 2006 Share Posted August 22, 2006 Hi allI have a simple php email code[code]$to = 'test@test.com';$subject = 'test';$headers = 'From: NGRS (info@test.com)' . "\r\n" . 'Reply-To: info@test.com' . "\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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.