mail attachment

mail attachment

am 05.09.2009 18:52:53 von legrega

--001485e9a605a4f2670472d772b6
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

How do I attach a file in mail function or do I have to use PEAR (and if ho=
w
....). What are the advantages of PEAR? When do You suggest to use PEAR?
Thanks in advance,
-- Peace refuge: http://users.skavt.net/~gleskovs/
When the sun rises I receive and when it sets I forgive;) Grega Leskov=C5=
=A1ek

--001485e9a605a4f2670472d772b6--

Re: mail attachment

am 05.09.2009 21:47:52 von Phpster

RTFM

Bastien

On Saturday, September 5, 2009, Grega Leskovšek wr=
ote:
> 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?
> Thanks in advance,
> -- Peace refuge: http://users.skavt.net/~gleskovs/
> When the sun rises I receive and when it sets I forgive;) Grega Leskov=C5=
=A1ek
>

--=20

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: mail attachment

am 06.09.2009 08:46:40 von Paul M Foster

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php