RE: Sending email with attachment in PHP.
| From: | Ted Knudson | Date: | Wed, 28 Jun 2000 17:59:10 +0000 |
| Subject: | RE: Sending email with attachment in PHP. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3611@lists.php.net to get a copy of this message | ||
I use this mail class to send several attachments to several e-mail
addresses at the same time.
A class to send mime-encoded emails with attachments
http://phpwizard.net/phpMisc/
Ted Knudson
http://www.automatedcabinets.com
http://www.pulsarusa.com
> -----Original Message-----
> From: php@beverly.bohemians.org [mailto:php@beverly.bohemians.org]
> Sent: Tuesday, June 27, 2000 7:33 PM
> To: php-general@lists.php.net
> Subject: Sending email with attchmnt in php.
>
>
> Hi there
>
> How would I write the header if I wanted to include a variable as an
> attchmnt? (Base64? as Content-Transfer-Encoding)
>
> Anyone got examples of this anywhere?
>
> Thanks
>
> Halldor
>
>
> <?
> $subject="Email with Attchmnt.";
> $mailbody="Hi there this is an test email!";
> $email="php@localhost";
>
> if(mail ($email,$subject,$mailbody,"From:php@ $SERVER_NAME"))
>
> print("Email sent.\n");
> }
e{
> print("Error somewhere?\n");
> }
> ?>
>
>
>