On 10/23/2003 09:13 AM, Don Mc Nair wrote:
Can anyone tell me how to add a file as an attachment to an email sent with something like the following ?
$headers = "From: <".$fromaddress.">\r\n"; $headers .= "Reply-To: <$fromaddress>\r\n"; mail($toaddress, $subject, $mailcontent, $headers);
You may want to try this class that lets you add attached files easily either from local files, remote files (http) or data in strings. It can also guess the correct file type from the file name:
http://www.phpclasses.org/mimemessage
--
Regards, Manuel Lemos
Free ready to use OOP components written in PHP http://www.phpclasses.org/
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php