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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> Hello,
> 
> on 07/01/2010 10:34 AM cr.vegelin@xxxxxxxxx said the following:
> > Hi List,
> > 
> > I am working on generated emails, using the mail() function.
> > Works fine, but when including characters like &#8743 (= ∧) 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux