You are here:

Email With Attachments Script in PHP

Vers: 1  

Finally, it`s quick and easy to send email from your web pages or forms with attachments!
Just include this PHP script in your web page, and call the mail_attachment attachment function with the path to the file you wish to attach.
function mail_attachment ($from , $to, $subject, $message, $attachment)
The script will strip off the path information from the file, attach it to the email, and send it to the specified recipient. You pass in the full path to the file, as in /var/www/images/my_family_photo.jpg, and your user will receive an attachment titled "my_family_photo.jpg" in their inbox, along with the subject and message of your choice.

Email With Attachments Script in PHP Thumbnail Demo

Info:

Hits Licence Updated Platforms
3996 Free Feb 7, 2005   Linux, Unix 
Visit Demo

Rating: 3.60 / 5 (1 Vote cast)

Tags

Comments



Sponsored