Page 1 of 1
PHP Mail
Posted: Thu Nov 03, 2005 10:48 am
by quadoc
Is there a way to use color text in mail body? For example, I like my $mailmessage to have red, blue and green color text. Please post some tips. Thanks...
mail($email, $subject, $mailmessage, $headers);
Posted: Thu Nov 03, 2005 10:49 am
by feyd
you could only color the text if you are sending in HTML format...
Posted: Thu Nov 03, 2005 10:50 am
by quadoc
feyd, can you give me an example? Thanks...
Posted: Thu Nov 03, 2005 11:12 am
by feyd
Set the content type of your email to html: text/html
The using HTML, you can change the color of the text to your liking.
There've been many posts about sending HTML email on the boards.. search around

Speaking of PHP mail
Posted: Thu Nov 03, 2005 2:51 pm
by dallasx
I run PHP on a Windows 2000 Server and PHP mail won't work for me
Posted: Thu Nov 03, 2005 2:55 pm
by redmonkey
I've never had a problem in Windows although grnated I have not used 2K server (actually, I've never even heard of it).
May be a silly question, but have you defined your mailserver in php.ini?
Re: Speaking of PHP mail
Posted: Thu Nov 03, 2005 3:01 pm
by John Cartwright
dallasx wrote:I run PHP on a Windows 2000 Server and PHP mail won't work for me
Please don't hijack threads, this belongs in your own thread
Re: Speaking of PHP mail
Posted: Fri Nov 04, 2005 3:31 pm
by dallasx
Jcart wrote:dallasx wrote:I run PHP on a Windows 2000 Server and PHP mail won't work for me
Please don't hijack threads, this belongs in your own thread
Sorry about that.