[FX.php List] Yet another annoying single-quotes problem
Bob Patin
bob at patin.com
Fri Apr 27 17:40:10 MDT 2007
Yes I know, but I don't want to send HTML email; this needs to be
plain-text...
Bob
On Apr 27, 2007, at 6:07 PM, Vision Computer Consulting wrote:
> You are, most likely, sending html code in a text email. You can do
> html email in PHP. Here is an example.
>
> function MAIL_NVLP_WEB($fromname, $fromaddress, $toname,
> $toaddress, $subject, $message) {
> // Copyright 2005 ECRIA LLC, http://www.ECRIA.com
> // Please use or modify for any purpose but leave this notice
> unchanged.
> $headers = "MIME-Version: 1.0\n";
> $headers .= "Content-type: text/html; charset=iso-8859-1\n";
> $headers .= "X-Priority: 3\n";
> $headers .= "X-MSMail-Priority: Normal\n";
> $headers .= "X-Mailer: php\n";
> $headers .= "From: \"".$fromname."\" <".$fromaddress.">\n";
>
> return mail($toaddress, $subject, $message, $headers);
>
> }
>
>
>
>
>
> On Apr 27, 2007, at 3:19 PM, Bob Patin wrote:
>
>> I get the feeling I've asked the same question 10 times, but I
>> don't think i've had this problem in this way yet:
>>
>> I'm adding some email functionality to a client's site, and when I
>> send myself a test email, I get this:
>>
>> St. Robert’s Hospital
>>
>> instead of
>>
>> St. Robert's Hospital
>>
>> I tried using STRIPSLASHES (which I knew was wrong, but I tried
>> anyway), and I tried HTMLENTITIES too; is there a command that
>> would prevent this when I'm sending a plain-text email?
>>
>> Thanks,
>>
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>>
>> CONTACT US VIA INSTANT MESSAGING:
>> AIM or iChat: longterm1954
>> Yahoo: longterm_solutions
>> MSN: tech at longtermsolutions.com
>> ICQ: 159333060
>>
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list