ghgarcia Posted August 15, 2006 Share Posted August 15, 2006 I need some help in what I need to do to create an email message in HTML to be displayed correctly in Outlook. Currently my messages will display correctly in any web based mail client. I only have a problem dealing with Microsoft Outlook. I can't find what trigger I need to set in the header or body of the message to make it work. Currently the headers that I'm creating are:BCC: ghgarcia@lvbash.com, From: ghgarcia@lvbash.com Reply-To: ghgarcia@lvbash.com Return-Path: ghgarcia@lvbash.com MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit Any help would be greatly appreciated.George Quote Link to comment Share on other sites More sharing options...
Exussum Posted August 15, 2006 Share Posted August 15, 2006 'Content-type: text/html; charset=iso-8859-1'try that ? Quote Link to comment Share on other sites More sharing options...
ghgarcia Posted August 15, 2006 Author Share Posted August 15, 2006 I had it set that way but no joy. I was looking at other emails that had used the ascii setting.Thanks,George Quote Link to comment Share on other sites More sharing options...
jvalarta Posted August 15, 2006 Share Posted August 15, 2006 I just finished a project where we tied our company intranet into Outlook -- here's the HTML content type:Content-Type:text/htmlWorks like a charm. Here's a code snippet also:$Header = "From: Company Name <someone@domain.com>\n";$Header .= "Content-Type:text/html";$Subject = 'Email Subject Here';$Message = 'HTML code here (remember to escape quotes)';mail ("to@address.com", $Subject, $Message, $Header); Quote Link to comment Share on other sites More sharing options...
ghgarcia Posted August 15, 2006 Author Share Posted August 15, 2006 I'll give it a try.Thanks Quote Link to comment Share on other sites More sharing options...
ghgarcia Posted August 15, 2006 Author Share Posted August 15, 2006 That did it I really appreciate the help I knew it was something simple.George Quote Link to comment 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.