RE: [PHP] Sending email with attachment in php.

From: Date: Thu, 29 Jun 2000 21:08:27 +0000
Subject: RE: [PHP] Sending email with attachment in php.
Groups: php.general 
Request: Send a blank email to php-general+get-3876@lists.php.net to get a copy of this message
http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=1583 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -----Original Message----- From: php@beverly.bohemians.org [mailto:php@beverly.bohemians.org] Sent: Wednesday, June 28, 2000 2:33 AM To: php-general@lists.php.net Subject: [PHP] 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"); } else{ print("Error somewhere?\n"); } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#3876) next »