By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,420 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

Using phpMailer & HTML

P: n/a
I'm using the following line of php code and would like to incorporate
a little HTML in order to get line breaks <brand bold headers <b></
bwhere 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

Apr 28 '07 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Apr 28, 3:52 pm, j...@lycos.com wrote:
I'm using the following line of php code and would like to incorporate
a little HTML in order to get line breaks <brand bold headers <b></
bwhere 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

$mail->IsHTML(true);

Apr 28 '07 #2

P: n/a
<jc***@lycos.comwrote in message
news:11**********************@n76g2000hsh.googlegr oups.com...
I'm using the following line of php code and would like to incorporate
a little HTML in order to get line breaks <brand bold headers <b></
bwhere 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
Apr 28 '07 #3

P: n/a
"Vince Morgan" <vi****@REMOVEoptusnet.com.auwrote in message
news:46***********************@news.optusnet.com.a u...
And, if I had refreshed the post first I would not have replayed, as
simmyshack has already done.
Apr 28 '07 #4

P: n/a
On Apr 28, 4:54 pm, "Vince Morgan" <vin...@REMOVEoptusnet.com.au>
wrote:
"Vince Morgan" <vin...@REMOVEoptusnet.com.auwrote in message

news:46***********************@news.optusnet.com.a u...
And, if I had refreshed the post first I would not have replayed, as
simmyshack has already done.
ah but i didnt mention the brackets Vince!, well spotted!

btw john, phpmailer has great documentation, as well as example code
which shows all this!

Apr 28 '07 #5

P: n/a
Rik
Vince Morgan wrote:
"Vince Morgan" <vi****@REMOVEoptusnet.com.auwrote in message
news:46***********************@news.optusnet.com.a u...
And, if I had refreshed the post first I would not have replayed, as
simmyshack has already done.
Answering posts is 'play' to you, is it? :P

"Whooo, I'm a level 9 post-answerer, beware of the end-guy of level 8,
he seems hard, but turns out to be just a troll.."

"Level 4 is easy, just hurl 'comp.lang.javascript' to them untill they
understand..."

:-)
--
Rik Wasmus

Estimated date being able to walk again: 01-05-2007.
Less then a week, hurray!
Apr 29 '07 #6

P: n/a

"shimmyshack" <ma********@gmail.comwrote in message
news:11**********************@o5g2000hsb.googlegro ups.com...
On Apr 28, 4:54 pm, "Vince Morgan" <vin...@REMOVEoptusnet.com.au>
wrote:
"Vince Morgan" <vin...@REMOVEoptusnet.com.auwrote in message

news:46***********************@news.optusnet.com.a u...
And, if I had refreshed the post first I would not have replayed, as
simmyshack has already done.

ah but i didnt mention the brackets Vince!, well spotted!

btw john, phpmailer has great documentation, as well as example code
which shows all this!
You didn't mention them because they were largely irrelevent :)
Apr 29 '07 #7

P: n/a
"Rik" <lu************@hotmail.comwrote in message
news:f1**********@news1.zwoll1.ov.home.nl...
Vince Morgan wrote:
"Vince Morgan" <vi****@REMOVEoptusnet.com.auwrote in message
news:46***********************@news.optusnet.com.a u...
And, if I had refreshed the post first I would not have replayed, as
simmyshack has already done.

Answering posts is 'play' to you, is it? :P
Normaly I stick to the alt.kitchen.cooking group but the activity has been
low recently.
Hope you find your legs soon Rik. Errr, I mean, I'm sure they're still
there, but,, hmm, get well soon!
;]
Vince
Apr 29 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.