473,511 Members | 16,769 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using phpMailer & HTML

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
7 2062
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
<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
"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
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
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

"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
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
15504
by: James | last post by:
How can I take my form data and send it as an email using my SMTP server located @ my ISP using PHP ? my form has several fields: TO: this is a drop down list FROM: this is a drop down...
1
2431
by: Daniel Loose | last post by:
Hi, a friend was so kind to host my php scripts. but when they use phpmailer (or other PHP mail facilities) to email e.g. to an invalid address, the returning error message appears in *my...
4
1912
by: R. Rajesh Jeba Anbiah | last post by:
If you're working in PHP 5 and used APD, phpDocumentor, PHPMailer & ADODB, you might be knowing that these projects are not maintained and the old codes are throwing bunch of errors in higher error...
1
12568
by: Leszek | last post by:
Hi. I have problem with phpMailer 1.73 (windows version) After copying both class.phpmailer and class.smtp and also language file phpmailer.lang-pl to my php include directory im getting this...
7
7719
by: oopsbabies | last post by:
Hello everyone, I am using Apache 1.3.33 as the web server and PHP version 4.3.10. My machine is using Windows XP 2002 professional edition which comes with a Windows firewall. I am using McAfee...
2
4533
by: prasenjit2007 | last post by:
Hello, can u help me sending Email with attachments using the Class phpMailer. On the website I have a link to an html form in which I input the parameters with the names 1)from(textbox name)...
2
1693
by: pradeep | last post by:
Hello All, I use PHPMailer with my SMTP server mail.demo.com I changed my mail server to mail.demo.com to mail.anotherdemo.com So, i replaced mail.demo.com by mail.anotherdemo.com similarly...
7
22822
dlite922
by: dlite922 | last post by:
I can't seem to get it working with my smtp server. I can send the email through the command line like so: 220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 6 Aug 2008 18:44:29...
2
5859
mikek12004
by: mikek12004 | last post by:
Before posting here I google it and saw ablut 30 pages for a solution so I pretty much excluded the obvious things. The code is <?php //now to send the mails to seller...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.