Ok it works. it comes as html,
But it comes with servername at From part.
That's to say, I get the mail no-reply@xxxxxxxxxxxx@full.servername.com
How can I conceal the servername at the From part ?
Thanks
2009/2/4 Bulend Kolay <bmalik@xxxxxxxxxxxx>
I attached my code
Thanks
Show your code, but it sounds like maybe the HTML flag is not set.
Consider using a class like phpmailer or the mime mail class from
phpclasses.org
Bastien
Sent from my iPod
On Feb 4, 2009, at 6:28, "Bulend Kolay" <bmalik@xxxxxxxxxxxx> wrote:
I use php-5.2.6 and apache2.2.x on opensuse11
I have a file called mailsend.php to send a mail of html format.
the server sends the mail form of html format. But I get it as text
instead of html.
default_mimetype is set as text/html in php.ini file.
How can I correct this ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Looking the code quickly, the only thing I do differently is setting the
headers:
//build the headers
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "X-Priority: 1\n";
$headers .= "X-MSMail-Priority: High\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "From: \"Site Admin <no-reply@xxxxxxxxxxxx>\n";
What mail client are you using? Does it / is it set to accept html mails?
--
Bastien
Cat, the other other white meat
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php