Portal Home > Knowledgebase > Articles Database > PHP - HTML Email Send
PHP - HTML Email Send
|Posted by Danny159, 12-12-2007, 01:17 PM|
I am making a php application and i want the user to be able to put in the message box something but it can be in HTML so i did this and now when it sends it dosnt make it php even when i have this:
Can anyone help?
|Posted by Xlusive, 12-12-2007, 01:23 PM|
|Sorry, but i don't understand it fully.
Rephrase your question.
|Posted by Danny159, 12-12-2007, 01:37 PM|
|I'm basicly asking how you send HTML through php becasue mine dosent work
|Posted by arbet, 12-12-2007, 01:56 PM|
|call the url with the Get method
|Posted by Danny159, 12-12-2007, 02:02 PM|
|No i know all that but its working fine and it send the email it just dosent show the HTML stuff in the email like if you put |
|Posted by Steve_Arm, 12-12-2007, 02:20 PM|
|try changing this line to:
$headers .= "Content-Type: text/html;";
|Posted by Danny159, 12-12-2007, 02:41 PM|
|Still not working
|Posted by Steve_Arm, 12-12-2007, 02:59 PM|
|Well, does your client software display messages in HTML?
View the message source.
|Posted by Danny159, 12-12-2007, 03:02 PM|
|you mean set to HTML in the textfield?
|Posted by orbitz, 12-12-2007, 05:43 PM|
|no, Steve meant that some Email Application, users are given option to disable/enable messages in plain text/HTML.
If you send as HTML format, but the user set to plain text, he/she will see html codes instead of a nice html-formatted page.
|Posted by Xlusive, 12-12-2007, 06:34 PM|
|OK try this:
|Posted by jstanden, 12-12-2007, 10:19 PM|
|I'd really suggest using a better e-mail library when you get into HTML mail and MIME content parts.
My personal favorite so far is SwiftMailer (LGPL, excellent API).
Here's a link to their 'Sending HTML' examples:
|Posted by holmesa, 12-14-2007, 07:35 PM|
|Same thread from the same author:
|Posted by Danny159, 12-15-2007, 05:42 AM|
|I have this fixed now... however it wont send to emails that are not on the server DNS... so say it was a firstname.lastname@example.org it will not send it to you but will send to email@example.com
Why is this
Add to Favourites Print this Article
SSL error (Views: 450)