Jump to content


Photo

Help sending mail in HTML format to Outlook


  • Please log in to reply
5 replies to this topic

#1 ghgarcia

ghgarcia
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts
  • LocationFlorida

Posted 15 August 2006 - 09:21 PM

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
George

#2 Exussum

Exussum
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 15 August 2006 - 09:29 PM

'Content-type: text/html; charset=iso-8859-1'

try that ?



#3 ghgarcia

ghgarcia
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts
  • LocationFlorida

Posted 15 August 2006 - 09:35 PM

I had it set that way but no joy. I was looking at other emails that had used the ascii setting.

Thanks,
George
George

#4 jvalarta

jvalarta
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts

Posted 15 August 2006 - 09:38 PM

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

#5 ghgarcia

ghgarcia
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts
  • LocationFlorida

Posted 15 August 2006 - 09:43 PM

I'll give it a try.

Thanks
George

#6 ghgarcia

ghgarcia
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts
  • LocationFlorida

Posted 15 August 2006 - 09:56 PM

That did it I really appreciate the help I knew it was something simple.

George
George




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users