note 19438 added to function.mail

From: Date: Wed, 27 Feb 2002 16:42:49 +0000
Subject: note 19438 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-27122@lists.php.net to get a copy of this message
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>"; -- http://www.php.net/manual/en/function.mail.php http://master.php.net/manage/user-notes.php?action=edit+19438 http://master.php.net/manage/user-notes.php?action=delete+19438 http://master.php.net/manage/user-notes.php?action=reject+19438

« previous php.notes (#27122) next »