Helll every one. I have problem to make HTML-email working. I use PHP 'mail()' function. email body and header are below. After a new user registered in our system, we send him a confirm email (HTML-formatted) with a link embeded. I test email feature on 2 sites. One for testing and another is a real running site. They are hosted in different sites (testing site uses a share-hosting - PHP version 4.3.10 and Apache is 1.3), and real one runs on a dedicated server - PHP version is 4.3.2 and Apache is 2). The email function works on my testing site well, but doesn't work on the real site (without boby, but with From/To/Subject). Could anyone give me advices about it? Thanks in advance. I think it maybe the issue about boundaries. But how come it work on one and doesn' work on another one? what should the correct boundaries be?
Chen
my email body look like below (between 2 star lines):
This is a multi-part message in MIME format.
------=_NextPart_000_0041_01C011A0.6BB8DA10
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Dear a222222,
The following is your login information for [url]www.TotalHROffice.com.[/url]
.......
------=_NextPart_000_0041_01C011A0.6BB8DA10
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
<html>
<head>
<title>Welcome to HR411.com</title>
</head>
<body><p>Dear a222222,</p>
<p>Welcome to HR411, a service of HRinterax, Inc.?We have received your registration and your account is now online.</p>
.....
<p>Your HR411 Support Team<br />
HRinterax, Inc.</p></body></html>
------=_NextPart_000_0041_01C011A0.6BB8DA10--
And email header looks like this:
From: newaccount@totalhroffice.com
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0041_01C011A0.6BB8DA10"
Chen