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: [email protected], From: [email protected] Reply-To: [email protected] Return-Path: [email protected] MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit Any help would be greatly appreciated.George Link to comment https://forums.phpfreaks.com/topic/17682-help-sending-mail-in-html-format-to-outlook/ 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 ? Link to comment https://forums.phpfreaks.com/topic/17682-help-sending-mail-in-html-format-to-outlook/#findComment-75335 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 Link to comment https://forums.phpfreaks.com/topic/17682-help-sending-mail-in-html-format-to-outlook/#findComment-75338 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 <[email protected]>\n";$Header .= "Content-Type:text/html";$Subject = 'Email Subject Here';$Message = 'HTML code here (remember to escape quotes)';mail ("[email protected]", $Subject, $Message, $Header); Link to comment https://forums.phpfreaks.com/topic/17682-help-sending-mail-in-html-format-to-outlook/#findComment-75341 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 Link to comment https://forums.phpfreaks.com/topic/17682-help-sending-mail-in-html-format-to-outlook/#findComment-75343 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 Link to comment https://forums.phpfreaks.com/topic/17682-help-sending-mail-in-html-format-to-outlook/#findComment-75352 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.