Posted by Nunzio on 04/06/07 22:32
I am trying to build an email address in PHP code using v5.1.2. All
works well until I try to surround the email address with angle
brackets. Every method I try causes the email address to disappear
completely. I have to believe that this is a common problem, but I
can't find any answers in the PHP docs or in Google. Any insight
would be greatly appreciated. Below are some of my failed attempts.
$strAddressee = "$ContactName "."<"."$ContactEmail".">";
(brackets and email address disappear)
$strAddressee = "$ContactName <$ContactEmail>";
(brackets and email address disappear)
$strAddressee = "$ContactName \074 $ContactEmail \076";
(works, except for unwanted spaces between the brackets and address)
$strAddressee = "$ContactName \074{$ContactEmail}\076";
(brackets and email address disappear)
[Back to original message]
|