Jump to content

php html email achor/hyeperlink and bgcolor


james_4k2

Recommended Posts

Hi,

      I have a problem and the solution may be very simple but I am not able to find it. I have an automatic php email generated by a server. The email has html embedded in it because the email is suppose to have tables and text both. I have also added the MIME header to make it as HTML format email.

*****

$header = "MIME-Version: 1.0";

$header = $header . "\r\nContent-type:text/html;charset=isp\o-8859-1";

$header = $header . "\r\n";

$header = $header . 'From: abc at yahoo dot com'."\r\n";

*****

 

Now I have two tasks to do.

 

1. Have to set the background color for the entire email. Have tried <BODY bgcolor="#FFFF00"> just after the <HTML> tag but still it doesnt work.

 

2. As the email have multiple tables so I have to make hyperlinks or to be more specific anchors at the top so when the user clicks on the anchor for a particular table, he should be directed to that table in the same email page.(I can find this thing in simple html or php webpage but cannot find in an html based php email.)

 

if anyone know about it then please let me know.

Thanks

 

 

Link to comment
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.