Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-06 Thread cr.vegelin
From: Ashley Sheridan 
  To: Manuel Lemos 
  Cc: cr.vege...@gmail.com ; php-general@lists.php.net 
  Sent: Saturday, July 03, 2010 1:22 PM
  Subject: Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?


  On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote: 
Hello,

on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following:
 Hi List,
 
 I am working on generated emails, using the mail() function.
 Works fine, but when including characters like #8743 (= and;) or #8744; (= 
 or;)
 in the message, these characters are displayed as ? in the emails.
 
 Snippet:
 $headers  = 'MIME-Version: 1.0' . \r\n;
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;
 ...
 $bool = mail ($mailto, $subject, $body, $headers);
 
 also tested with:
 $headers .= 'Content-type: text/html; charset=UTF-8' . \r\n;
 but without result.
 
 Any ideas ?
 TIA, Cor

When those characters appear as question marks is because you are using
a font in the messages that does not have characters with those codes.

Try including the sections of those characters with some span tags like
this span style=font-family: font-name-here#8744;/span

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/


  I don't believe it is the font issue, and don't forget that outputting HTML 
for an email is very different, so there are some things that you can specify 
that will be ignored by some email clients when they render your email.

  Those glyphs should be available to any system, as the email client should 
use whatever font on the system is set up for the extended glyphs where they 
are not available in the current font. What email clients are you testing this 
on? Are they web based, or local? It's a good idea to test HTML emails on a 
variety of email clients, as they all can behave very differently.

Thanks,
Ash
http://www.ashleysheridan.co.uk

   

Sorry for the delay; was away a few days.
The special characters (#8743; #8744;) are part of td tags.
I tested both:
tdspan style=font-family: arial,courier,times#8744;/span/td
and
td style=font-family: arial,courier,times#8744;/td
but without the desired result.

BTW, I wrote that the spec. characters are displayed in my email as ?
In fact they are displayed as little squares, but copying it here makes it a ? 
mark.
I am testing the HTML emails web based with Outlook Express,
with the Format - Encoding setting to UTF-8. 
The only reason to use the spec. chars is to simulate arrows, without img.

TIA, Cor




Re: [PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-03 Thread Ashley Sheridan
On Fri, 2010-07-02 at 22:58 -0300, Manuel Lemos wrote:

 Hello,
 
 on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following:
  Hi List,
  
  I am working on generated emails, using the mail() function.
  Works fine, but when including characters like #8743 (= and;) or #8744; 
  (= or;)
  in the message, these characters are displayed as ? in the emails.
  
  Snippet:
  $headers  = 'MIME-Version: 1.0' . \r\n;
  $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;
  ...
  $bool = mail ($mailto, $subject, $body, $headers);
  
  also tested with:
  $headers .= 'Content-type: text/html; charset=UTF-8' . \r\n;
  but without result.
  
  Any ideas ?
  TIA, Cor
 
 When those characters appear as question marks is because you are using
 a font in the messages that does not have characters with those codes.
 
 Try including the sections of those characters with some span tags like
 this span style=font-family: font-name-here#8744;/span
 
 -- 
 
 Regards,
 Manuel Lemos
 
 Find and post PHP jobs
 http://www.phpclasses.org/jobs/
 
 PHP Classes - Free ready to use OOP components written in PHP
 http://www.phpclasses.org/
 


I don't believe it is the font issue, and don't forget that outputting
HTML for an email is very different, so there are some things that you
can specify that will be ignored by some email clients when they render
your email.

Those glyphs should be available to any system, as the email client
should use whatever font on the system is set up for the extended glyphs
where they are not available in the current font. What email clients are
you testing this on? Are they web based, or local? It's a good idea to
test HTML emails on a variety of email clients, as they all can behave
very differently.

Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] Re: how to use HTML Symbol Entities with mail() ?

2010-07-02 Thread Manuel Lemos
Hello,

on 07/01/2010 10:34 AM cr.vege...@gmail.com said the following:
 Hi List,
 
 I am working on generated emails, using the mail() function.
 Works fine, but when including characters like #8743 (= and;) or #8744; (= 
 or;)
 in the message, these characters are displayed as ? in the emails.
 
 Snippet:
 $headers  = 'MIME-Version: 1.0' . \r\n;
 $headers .= 'Content-type: text/html; charset=iso-8859-1' . \r\n;
 ...
 $bool = mail ($mailto, $subject, $body, $headers);
 
 also tested with:
 $headers .= 'Content-type: text/html; charset=UTF-8' . \r\n;
 but without result.
 
 Any ideas ?
 TIA, Cor

When those characters appear as question marks is because you are using
a font in the messages that does not have characters with those codes.

Try including the sections of those characters with some span tags like
this span style=font-family: font-name-here#8744;/span

-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php