•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,596 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,441 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 1030 | Replies: 13
![]() |
| |
Peace, I made a mail form and I want to enable The HTML in the Mail Message, How can I do it?... I wrote in the headers:
$headers='From:Management<info@3malas.com>';
$headers='From:Management<info@3malas.com>';
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
•
•
Join Date: Dec 2006
Location: United States
Posts: 613
Reputation:
Rep Power: 3
Solved Threads: 15
try this:
<?php
$subject = "HTML Test";
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
$header .= "From: CodeRewind <service@coderewind.com>\r\n";
$to = "Abd_arrahman2000@yahoo.com";
$body = "";
$body = $body.'<b>Test HTML Mail</b>';
mail($to, $subject, $body, $header);
?>
<?php
$subject = "HTML Test";
$header = "MIME-Version: 1.0\n";
$header .= "Content-type: text/html; charset=iso-8859-1\n";
$header .= "From: CodeRewind <service@coderewind.com>\r\n";
$to = "Abd_arrahman2000@yahoo.com";
$body = "";
$body = $body.'<b>Test HTML Mail</b>';
mail($to, $subject, $body, $header);
?>
Last edited by binoj_daniel : Sep 10th, 2007 at 4:30 pm.
I will must try it... Thanks.
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
•
•
Join Date: Dec 2006
Location: United States
Posts: 613
Reputation:
Rep Power: 3
Solved Threads: 15
It did not work, Another question why should I write \n and \r?
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
•
•
Join Date: Dec 2006
Location: United States
Posts: 613
Reputation:
Rep Power: 3
Solved Threads: 15
What is the error?
\n is for New line
\n is for New line
In fact there is no error, It goes well but the Email doesn't send.
This is the Code:
This is the Code:
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=windows-1256\n";
$headers .="From:3Malas Chat Managment<info@3malas.com>\n\r";
$Going="info@3malas.com";
$Subj="Hello";
$Msg="Bla bla bla bla..............";
mail($Going,$Subj,$Msg,$headers);
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
•
•
Join Date: Dec 2006
Location: United States
Posts: 613
Reputation:
Rep Power: 3
Solved Threads: 15
try sending the mail to a different email address.
Peace,
It tried it and it worked but The Sender Name was:
anymous@(MYCPNAME).com
However I want the (From) Shows: 3Malas Chat Room Management <info@3malas.com>
How can I do it?
It tried it and it worked but The Sender Name was:
anymous@(MYCPNAME).com
However I want the (From) Shows: 3Malas Chat Room Management <info@3malas.com>
How can I do it?
The great scientist see his web-site:
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
http://www.elnaggarzr.com/en
I'm sure that will be good for you!
•
•
Join Date: Dec 2006
Location: United States
Posts: 613
Reputation:
Rep Power: 3
Solved Threads: 15
So you replaced both the variable with anymous@(MYCPNAME).com . The header and the going?
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
blog code collaboration tools competition css daniweb development div dreamweaver emai security firefox gentoo gmail google checkout google checkout vat html html api javascript linux mail mail client malware news outlook php pop qmail security server smtp spam storage symantec tables w3c web wysiwyg xml
- Sending HTML Mailer With SWF (ASP)
- Using HTML tags in PHP code (PHP)
- mailing html file (PHP)
- transfer page (ASP.NET)
- html_email_images_coming_ as_attachment_also (HTML and CSS)
- email button in mail.body (ASP.NET)
- Fake Microsoft Windows Security Warning (Viruses, Spyware and other Nasties)
- HTML mail subscriiption error (PHP)
Other Threads in the PHP Forum
- Previous Thread: Find & Insert Part of urlQuery value?
- Next Thread: PHP Contact Form Help


Hybrid Mode