I have a simple php email code
$to = 'firstname.lastname@example.org'; $subject = 'test'; $headers = 'From: NGRS (email@example.com)' . "\r\n" . 'Reply-To: firstname.lastname@example.org' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $message = 'test'; mail($to, $subject, $message, $headers);
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 great
Thanks in advance