hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : Sending emails from PHP as HTML.
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

Sending emails from PHP as HTML.

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2005, 11:38 PM
VolkNet VolkNet is offline
Web Hosting Master
 
Join Date: Jun 2004
Location: Bay Area -USA
Posts: 1,738

Sending emails from PHP as HTML.


I have a quick Question about this.

To send an email from php using the mail() funtion, is there any special headers or anything that i need to do to make sure that the email is sent as html.

I kept trying to send myself a test email with html and it would actually print the html out as the message and the place is capable of reading html emails.

Any help? thx.

__________________
<<< Please see Forum Guidelines for signature setup. >>>

Reply With Quote


Sponsored Links
  #2  
Old 04-22-2005, 01:32 AM
rackgeek rackgeek is offline
WHT Addict
 
Join Date: Jan 2004
Location: Dallas / Fort Worth Texas
Posts: 116
Hi Volknet:

Try adding this to your message function:

/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";

Post your script if your still having problems. I'll be glad to help.

Thanks!

Reply With Quote
  #3  
Old 04-24-2005, 06:37 AM
Jon69 Jon69 is offline
Junior Guru Wannabe
 
Join Date: Apr 2003
Location: Sunny UK
Posts: 33
Check out

http://www.zend.com/zend/trick/html-email.php

for an easy guide.

Reply With Quote
Sponsored Links
  #4  
Old 04-24-2005, 04:43 PM
Robertoe Robertoe is offline
Newbie
 
Join Date: Apr 2005
Posts: 7
very helpful thanx for that

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
The Options for Blocking Outbound Spam: The Status Quo Blog 2013-06-06 14:08:10
eleven August Email Security Report Sees Highest Spam Growth Rate in Two Years Web Hosting News 2012-08-08 13:22:20
eleven Report for June Sees 927.4 Percent Rise in Virus-Infected Emails Web Hosting News 2012-06-07 15:33:50
eleven Report Finds Increase in Phishing Emails Disguised as PayPal, Amazon in Q1 2012 Web Hosting News 2012-04-13 11:14:23
eleven Report Finds Online Casinos Most Popular Spam Topic in November Web Hosting News 2011-12-12 21:58:22


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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 Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?