PHP mail () Function
Posted: Tue Sep 02, 2003 6:53 pm
I'm using the mail () functions for users to send me information which is then posted into a certain page of my website. Now I want users to be able to send me images, my question is how do I do this? My guess is below:
My question is, is there such variable $attachment that can be used to attach an image to be sent?
Thanks,
Mman
Code: Select all
<?php
$to = "webmaster@domain.com";
$subject = "Form Information";
//and so on...
$success = mail ($to, $subject, $from, $headers, $attachments)
if ($success)
print ("Sent Successfully");
else
print ("Error sending, please try again.");
?>My question is, is there such variable $attachment that can be used to attach an image to be sent?
Thanks,
Mman