You are here: Re: Using phpMailer & HTML « PHP Language « IT news, forums, messages
Re: Using phpMailer & HTML

Posted by Vince Morgan on 04/28/07 15:50

<jcage@lycos.com> wrote in message
news:1177771972.418467.122750@n76g2000hsh.googlegroups.com...
> I'm using the following line of php code and would like to incorporate
> a little HTML in order to get line breaks <br> and bold headers <b></
> b> where I want. Anyone know how to make that happen?
>
> current:
> $mail->Body = ("From: $name, Area: $area, Issue: $issue");
>
> would like to get something as follows:
> $mail->Body = ("<b>From:</b> $name,<br><b>Area:</b>
> $area,<br><b>Issue:</b> $issue");
>
> Thanks,
> John
>

Hmmm, if I were you, apart from the unnesessary brackets, I would probably
do what you have done,
I would make sure I was using the Send as HTML as below.
$mail->IsHTML(true); as you might not have done.
Then, if that didn't work, I might ask someone on here, as you have done.
And then I might find you answering me as I have done.
But then again, I'm not you :)
Vince

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация