Re: Sending file stored on server via email - How?
| From: | Roman Neuhauser | Date: | Mon, 08 Jan 2007 09:14:43 +0000 |
| Subject: | Re: Sending file stored on server via email - How? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246737@lists.php.net to get a copy of this message | ||
# matt.baluyos.lists@gmail.com / 2007-01-08 19:06:16 +1100:
> Hello everyone,
>
> I store files on the server (.pdf, .doc, .txt, etc.) which are
> referenced by entries in a database. The filenames are only stored in
> the database and are not BLOBs.
>
> What I'd like to do is to be able to show a web form wherein a user
> can choose stored documents on the server and send it to an email.
>
> What's the easiest way to go about this? Specifically, what's the
> easiest way to read a file from the server and send it as an email
> attachment.
uuencode yourfile | mail -s "my subject" recipient@example.org
--
How many Vietnam vets does it take to screw in a light bulb?
You don't know, man. You don't KNOW.
Cause you weren't THERE. http://bash.org/?255991