Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 14th, 2007, 11:22 AM   #1
woocha
Newbie
 
woocha's Avatar
 
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0 woocha is on a distinguished road
store HTML is a text field in a table on a MySQL Database

I am emailing a field from a MySQL DB table. The field type is text. Basically, it is an accept email. How can I make it so the email sent is capable of emailing HTML to make the message more attractive?


I have already tried to insert < html > into the text field, but that doesn't work....The received email, just diplays the text < html > and then the rest of the text.

ANy suggestions?
__________________
FREE Online Auctions at:
http://www.woocha.com/auctions
woocha is offline   Reply With Quote
Old Sep 14th, 2007, 12:04 PM   #2
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 837
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
You need to set the Content-Type header to text/html.
titaniumdecoy is offline   Reply With Quote
Old Sep 14th, 2007, 12:10 PM   #3
woocha
Newbie
 
woocha's Avatar
 
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0 woocha is on a distinguished road
Quote:
Originally Posted by titaniumdecoy View Post
You need to set the Content-Type header to text/html.
What do you mean?
Do you mean in my php code?

here is my code:
if ($action == "decline")
{
	$query	= "delete from orders where id=$id and merchant=$merchant";
	mysql_query( $query);

if ($sendemail == "yes") 
{

  mail("\"$name\" <$email>", 
     "Your order has been declined!", 
     stripslashes($r['emaildecline']),
      "From: \"".$r['company_name']."\" <".$r['email'].">\nReply-To: ".$r['email']); 
}
}
__________________
FREE Online Auctions at:
http://www.woocha.com/auctions
woocha is offline   Reply With Quote
Old Sep 14th, 2007, 12:59 PM   #4
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Quote:
Originally Posted by titaniumdecoy View Post
You need to set the Content-Type header to text/html.
Read Above!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Sep 14th, 2007, 1:04 PM   #5
woocha
Newbie
 
woocha's Avatar
 
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0 woocha is on a distinguished road
Quote:
Originally Posted by ReggaetonKing View Post
Read Above!
there is no option for text/html...there is text, date, smallint, mediumint, int bigint, float, double, dceimal, datetime, timestamp, time, year, char, tinyblob, tinytext, blob, mediumblob, mediumtext, longblob, longtext, enum, set, bool
__________________
FREE Online Auctions at:
http://www.woocha.com/auctions
woocha is offline   Reply With Quote
Old Sep 14th, 2007, 12:47 PM   #6
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
No. In your MySQL database, you should be able to change that field's Content-Type. Are you using any GUI to manage your data?
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Sep 14th, 2007, 12:50 PM   #7
woocha
Newbie
 
woocha's Avatar
 
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0 woocha is on a distinguished road
Quote:
Originally Posted by ReggaetonKing View Post
No. In your MySQL database, you should be able to change that field's Content-Type. Are you using any GUI to manage your data?
Do you mean PHPMyAdmin?
__________________
FREE Online Auctions at:
http://www.woocha.com/auctions
woocha is offline   Reply With Quote
Old Sep 14th, 2007, 12:51 PM   #8
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Yes! I don't have PHPMyAdmin in front of me but when you edit your columns, you should see where you can change the Content-Type.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Sep 14th, 2007, 12:53 PM   #9
woocha
Newbie
 
woocha's Avatar
 
Join Date: Aug 2007
Location: online at woocha.com
Posts: 24
Rep Power: 0 woocha is on a distinguished road
Quote:
Originally Posted by ReggaetonKing View Post
Yes! I don't have PHPMyAdmin in front of me but when you edit your columns, you should see where you can change the Content-Type.
Yes...do you know what type it should be instead of text?
__________________
FREE Online Auctions at:
http://www.woocha.com/auctions
woocha is offline   Reply With Quote
Old Sep 14th, 2007, 1:07 PM   #10
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
I think you're look at the wrong option list. There should be another one, maybe it's file type?
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
start Learning HTMl smita HTML / XHTML / CSS 0 Mar 15th, 2007 7:38 AM
Basic HTML Tutorial - Reuben Keeney ReubenK HTML / XHTML / CSS 14 Mar 26th, 2006 5:50 AM
How to detect cursor location and insert text??? syntax-error C# 3 Jun 30th, 2005 1:42 AM
how do i automate text data and input into database? lionel84 C# 0 Jun 26th, 2005 9:35 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:37 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC