> I know how to send a standard email, but I`m having a bit of trouble
adding
> an attachment, can anyone put me right?
>
> this is my code which works fine...
>
> $subject="Hi";
> $email="[EMAIL PROTECTED]";
> $from="[EMAIL PROTECTED]";
> $message="Hi this is me testing my PHP mail script";
>
> mail($email, $subject, $message, $from);

Email attachments are quite a bit more convoluted than just adding a From
header...

You may want to use Manuel Lemos email class or some other pre-written
user-contributed function to do it.

Otherwise, you get the joy of figuring out MIME-encoding and making up
unique boundary lines to segment the mime-parts and other gnarly stuff I've
managed to not have to figure out...

Even if you want to roll your own, read their source as well as the RFCs
they used to figure all this out.

--
Visit the Zend Store at http://www.zend.com/store/
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to