james_4k2 Posted March 3, 2009 Share Posted March 3, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/147748-php-html-email-achorhyeperlink-and-bgcolor/ Share on other sites More sharing options...
HuggieBear Posted March 3, 2009 Share Posted March 3, 2009 Both of those should work fine. There's no reason why you shouldn't be able to set a background colour or use named anchors. Are you sure it's not your mail client causing a problem? Quote Link to comment https://forums.phpfreaks.com/topic/147748-php-html-email-achorhyeperlink-and-bgcolor/#findComment-775584 Share on other sites More sharing options...
james_4k2 Posted March 3, 2009 Author Share Posted March 3, 2009 Hi , The second part is working but still cannot figure out the first part. I can change the bgcolor of tables but not the entire email. Quote Link to comment https://forums.phpfreaks.com/topic/147748-php-html-email-achorhyeperlink-and-bgcolor/#findComment-775674 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.