note 19438 deleted from function.mail by didou

From: Date: Sat, 17 May 2003 15:16:04 +0000
Subject: note 19438 deleted from function.mail by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48158@lists.php.net to get a copy of this message
Note Submitter: php at priorwebsites.com Beware that you cannot easily print the $to string if you build it, because the e-mail addresses like <john@xyz.com> will be interpreted as HTML tags and not be printed. At least I think that's why it doesn't print. The following solves it: $to = "<test@xyz.com>, <another.test@xyz.com>"; $to_printable = $to; $to_printable = str_replace("<","",$to_printable); $to_printable = str_replace(">","",$to_printable); print "sending mail to:<br>"; print "$to_printable<br>";

« previous php.notes (#48158) next »