Email script?
- Started
- Last post
- 7 Responses
- F_18
I need a basic script. I have a form with one input field for a user to enter an email address. When the "submit" button is clicked, I just need the script to send an email containing the users email address. Simple, yet I can't really find anything that works and isn't buggy. All help is much appreciated.
- liquid0
look for php
- liquid0
also check your web host......most of them have preinstalled cgi scripts like formmail....
- PhonyMcRingRing0
PHP's got a mail function that's easy to implement:
- enobrev0
go to the php manual link fomr the last post.... name your field email... here's a basic script to do what you want (if the server is set up to send email properly):
- enobrev0
[?php
, 'Subscription', $_POST['email'], 'From: ' . $_POST['email']);
?]
(replace square brackets with grater tan / less than brackets)
this is assuming the method on your form is post. If it's get, us $_GET
- F_180
awesome. thank you.