html mail

From: Date: Wed, 24 Apr 2002 10:59:11 +0000
Subject: html mail
Groups: php.general 
Request: Send a blank email to php-general+get-94349@lists.php.net to get a copy of this message
Hi all, I'm studying some mail scripts written in php. When sending html mail the scripts all use a method that involves sending an html file as attachment. Why not use the mailsend function and send a string containing the whole html code? a code snippet example from a mail script: ---------------------------------- $file = "mail.html"; $mail->Body( "This mail is formatted in HTML - shame on me" ); // inline intructs the mail client to display the HTML if it can $mail->Attach( $file, "text/html", "inline" ); ---------------------------------- What I want is to send personalized html mail to users in a db-table. So the body of the mail starts with something like Dear "user" I mail you because you are interested in: "interests" and so on..... I hope my question is a bit clear to everyone. happy greetings, Wilbert ------------------------- Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl info@pdd.nl -------------------------

« previous php.general (#94349) next »