Jump to content

PHP Email


CanMan2004

Recommended Posts

Hi all

I 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 great

Thanks in advance

Dave
Link to comment
https://forums.phpfreaks.com/topic/18329-php-email/
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.