Jump to content

Archived

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

ghgarcia

Help sending mail in HTML format to Outlook

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: 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

Share this post


Link to post
Share on other sites
I had it set that way but no joy. I was looking at other emails that had used the ascii setting.

Thanks,
George

Share this post


Link to post
Share on other sites
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 <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);

Share this post


Link to post
Share on other sites
That did it I really appreciate the help I knew it was something simple.

George

Share this post


Link to post
Share on other sites

×

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.