Jump to content

Recommended Posts

Hi,
Been struggling to sort this one out - hopefully not too trivial for the forum members!

code snippet:-

"This message was sent from:\n" .
"$http_referrer\n" .
"------------------------------------------------------------\n" .
"Name : $name\n" .
"Address: \n$home\n" .
"Phone Number : $phone\n" .

What I want to do is have the email arrive with the subject (not the variable) in color ..

ie desired output would be say 
[color=red]Name:[/color] Fred
[color=green]Phone Number:[/color] 0121 009343

Regards, Barry
Link to comment
https://forums.phpfreaks.com/topic/29050-coloring-email-text/
Share on other sites

Somethign else to be aware of is that you should hard code all of your colors and any formatting you want because if this is intended to go to people using things like gmail and hotmail you cant use css to style it as it will strip away any style tags before delivery  this also makes using divs a bit of a pain in the ass but meeh  not like they are gonna change it any time soon

Link to comment
https://forums.phpfreaks.com/topic/29050-coloring-email-text/#findComment-133125
Share on other sites

Maybe I am missing something here having tried virtually every variation of HTML code and quotation marks I can think of, but all result in either a parsing error, unexpected "<", unexpected ":" etc. 
How's about an example please - I really am not getting anywhere with this!  Regards, Barry
Link to comment
https://forums.phpfreaks.com/topic/29050-coloring-email-text/#findComment-133134
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.