Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

[PHP] Re: Attachement in a mail From: rlynch (root <email protected>)
Date: 09/28/01

> How can I send an attachement with mail() function or any thing else?

Easy way: Snag somebody else's code from the code archives linked from:
http://php.net/links.php

Hard way: Figure out MIME encoding and random-separator generation, and
tack on your attachents to the 4th (optional) argument to
http://php.net/mail

> And can I do it with the html function mailto ?

I don't think so... You can get, like, the subject using:
<A HREF=mailto:somebody <email protected>?Subject=This+is+a+test>
But I don't think there's any HTML way to stuff an attachment in there
that wouldn't screw up your HTML...

Perhaps using JavaScript.

Realize that many users auto-delete any email with attachments from an
unknown source.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>