EXTREME Overclocking Forums
Home | Reviews | Forums | Downloads | $ EXTREME Deals $ | RealTime Pricing | Free Magazines | Gear | Folding Stats Newsletter | Contact Us


Go Back   EXTREME Overclocking Forums > Software Discussion > Programming, DBMS, HTML, Web Related
Register Forum Rules FAQ Search Today's Posts Mark Forums Read

Welcome Guest Visitor! Please Register, It's Free and Fun To Participate!
The EXTREME Overclocking Forums are a place for people to learn how to overclock and tweak their PC's components like the CPU, memory (RAM), or video card in order to gain the maximum performance out of their system. There are lots of discussions about new processors, graphics cards, cooling products, power supplies, cases, and so much more!

You are currently viewing our boards as a "guest" which gives you limited access to view most discussions. You need to register before you can post: click the register link to proceed. Before you register, please read the forum rules. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own pictures, and access many other special features. Registration is fast, simple, and absolutely free! To start viewing messages, select the forum that you want to visit from the selection below.

After you have registered and read the forum rules, you can check out the FAQ for more information on using the forum. We hope you enjoy your stay here!

Note To Spammers: We do not allow unsolicited advertising! Spam is usually reported & deleted within minutes of it being posted, so don't waste your time (or ours)!


Please Register to Post a Reply
 
Thread Tools
Old 07-01-2012, 02:14 PM   #1
Padishah
Dancing w/ a Penguin
Padishah's Avatar
Senior Member
 
Posts: 261
Last Seen: 07-03-2012
Age: 26
From: Soldotna, Alaska
iTrader: 0 / 0%
PHP: mail() HTML and From:

I have:
PHP Code:
$sendTo strip_tags($_POST["to"]);
$subject strip_tags($_POST["subject"]);
$name strip_tags($_POST["name"]);
$number strip_tags($_POST["number"]);
$email strip_tags($_POST["email"]);
$content strip_tags($_POST["content"]);
$headers "From: $email" "\r\n" .    "Reply-To: $reply";
$headers  "MIME-Version: 1.0" "\r\n"
$headers .= 'Content-type: text/html; charset=utf-8' "\r\n"
Using this, I can get an HTML email, but the From: $email seems to be ignored.

If I place the:
PHP Code:
$headers "From: $email" "\r\n" .    "Reply-To: $reply"
AFTER:
PHP Code:
$headers  "MIME-Version: 1.0" "\r\n"
$headers .= 'Content-type: text/html; charset=utf-8' "\r\n"
I get the opposite, wherein the From: $email works great, and the HTML shows up as all markup language.

Anyone see the issue with this tiny script?

Additional Comment:

figured it out needed to add a . before the = "MIME to not skip it

Last edited by Padishah : 07-01-2012 at 02:14 PM. Reason: Automerged Doublepost
United States  Offline
    Register to Reply to This Post
Please Register to Post a Reply


Thread Tools

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

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

All times are GMT -6. The time now is 02:24 PM.

Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Powered by vBulletin
Copyright ©2000 - 2011, EXTREME Overclocking