Re: Attachement in a mail

From: Date: Fri, 28 Sep 2001 19:45:54 +0000
Subject: Re: Attachement in a mail
References: 1  Groups: php.general php.general 
Request: Send a blank email to php-general+get-69218@lists.php.net to get a copy of this message
> 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@example.com?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.

« previous php.general (#69218) next »