Sending email with attchmnt in php.

From: Date: Wed, 28 Jun 2000 00:32:33 +0000
Subject: Sending email with attchmnt in php.
Groups: php.general 
Request: Send a blank email to php-general+get-3481@lists.php.net to get a copy of this message
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"); } ?>

« previous php.general (#3481) next »