26283 total geeks with 3498 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
MaxMouse
It's Friday... That's good enough for me!
CodeX
non stop lolz here but thats soon to end thanks to uni, surely the rest of the world is going good?
stabat
how things are going guys? Here... boring...
CodeX
I must be going wrong on the password lengths then, as long as it was done on ECB
MaxMouse
lol... the key is in hex (MD5: of the string "doit" without the "'s) and is in lower case. Maybe i should have submitted this as a challenge!

Donate
Donate and help us fund new challenges
Donate!
Due Date: May 31
May Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
Cook: Apple has "no
current plan" to
pull profits out of
Ireland
AWS cloud gains
critical federal
security
certification
IBM puts
supercomputer
Watson to work in
ROBOT CALL CENTRE
Irish deputy PM:
You want more tax
from Apple? Your
problem, not ours
Private equity firm
coughs for £1bn for
Websense
Violin welcomes new
grand master flash
flogger
Outsourcing
transfer "rumour"
O2 brushed off?
It"s happening ...
to THOUSANDS
David Cameron asks
UK biz to pay their
low, low taxes
Syrian hacktivists
hijack
Telegraph"
s Facebook, Twitter
accounts
Review: Sony Xperia
SP
Slashdot
Transporting a
15-Meter-Wide,
600-Ton Magnet
Cross Country
House Bill Would
Mandate Smart Gun
Tech By U.S.
Manufacturers
Do Developers Need
Free Perks To
Thrive?
So You"ve Always
Wanted a
Hovercraft...
(Video)
Microsoft Unveils
Xbox One
Ask Neil Gaiman and
Amber Benson About
Their Kickstarter
Vampire Movie
Immigration Reform
May Spur Software
Robotics
Hollywood Studios
Use DMCA To Censor
Pirate Bay
Documentary
Inside the
Microsoft Digital
Crimes Unit
Working Handgun
Printed On a
Sub-$2,000 3D
Printer
Article viewer

Sending email from PHP



Written by:dimport
Published by:dimport
Published on:2003-06-21 07:19:46
Topic:PHP
Search OSI about PHP.More articles by dimport.
 viewed 7139 times send this article printer friendly

Digg this!
    Rate this article :
It's easy to get php to mail you when someone hits *that* page that only the few should have access to.
The script below emails them and you, you'll need to do your own form though.

//mail excerpt
$to = ''gnu@your.site.com, $visitor@your.site.com'';
$from = ''website@your.site.com'';

if (isset($HTTP_POST_VARS)){

$body = '''';

while (list($key, $value) = each($HTTP_POST_VARS)){
$body .= $key . '' = '' . $value . "rn";
}
$headers = "From: $fromrn";
$headers .= "Reply-To: $fromrn";

$success = mail($to, "Posted " . date("m/d/Y"), $body, $headers);

}
// end mail excerpt

This article was originally written by gnu

Did you like this article? There are hundreds more.

Comments:
Anonymous
2007-05-14 05:20:18
i want a send emails to groups.using php code
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)
BB Code is enabled.
Captcha Number:


Blogs: (People who have posted blogs on this subject..)
elasolova
My PHP Projects on Sat 26th Sep 10am
I have been developing PHP applications for almost a year now. I have developed three projects. One is a simple trivia game. The other is a question-answer based community at http://www.javaist.com/quans . The last one is a programming challenge site just
countll
Blog entry for Thu 25th Oct 7am on Thu 25th Oct 7am
soo nu on this wicked world of NET. just decided to dive in today..hope friend aroun here can help

Test Yourself: (why not try testing your skill on this subject? Clicking the link will start the test.)
Test of experience (hopefully) by AcidIce

Things you're only likely to know if you've actually written a lot of PHP before :)


     
Your Ad Here
 
Copyright Open Source Institute, 2006