Jump to content

Help sending mail in HTML format to Outlook


ghgarcia

Recommended Posts

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
I just finished a project where we tied our company intranet into Outlook -- here's the HTML content type:

Content-Type:text/html

Works 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);

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.