CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Strange HTML mail() problem.

Print topic Send  topic

Author Message
Gena

Posts: 591
Posted: 01/22/2008, 2:50 PM

I have strange problem sending HTML email. Customer who uses Outlook and some FireBird users can not get it, I mean it get it just like text email with HTML code inside - not like HTML normal email.

I'm using this function:

  
function sendNmail($FromAddress,$ToAddress,$Subject,$Message,$EmailType)  
{  
 $date = date("r");  
 $Additional_Headers="From: $FromAddress\r\nReply-To: $FromAddress\r\nMIME-Version: 1.0\r\nContent-Type: text/";  
 $Additional_Headers.=(strcasecmp($EmailType,"html")==0)?"html":"plain";  
 $Additional_Headers.="; charset=utf-8\r\nContent-Transfer-Encoding: 8bit\r\nDate: " . $date . "\r\n";  
 $result = mail ($ToAddress, $Subject, $Message, $Additional_Headers);  
 return;  
}  

it generates right header but it not recognized by Outlook... Is there any solution?
_________________
Gena
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.