Re: mail attachment
| From: | Paul M Foster | Date: | Sun, 06 Sep 2009 06:46:40 +0000 |
| Subject: | Re: mail attachment | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-297741@lists.php.net to get a copy of this message | ||
On Sat, Sep 05, 2009 at 06:52:53PM +0200, Grega Leskov??ek wrote:
> How do I attach a file in mail function or do I have to use PEAR (and if how
> ...). What are the advantages of PEAR? When do You suggest to use PEAR?
You *can* attach something to an email using the mail() function, but
the process is complicated, and the mail() function isn't really set up
to do this. I believe the usual suggestion for users who ask this
question is to use the phpmailer package. It does this more easily.
Google for phpmailer.
Paul
--
Paul M. Foster