I'm on the edge of finishing my website, which has a "Contact" form, allowing people to fill in their question & once they press the "Submit", after the data gets validated (using all the validation I've in it for each individual fields like Name, E-mail, Telephone, etc.), it should reach my e-mail. It can be seen on:
I'm using PHP's mail function to receive this form & its code is:
(mail("email@example.com", $_POST['inquiry'], stripslashes($_POST['message']), "From: " . $_POST['email']))
As far as I know, we HAVE TO HAVE "SMTP based e-mail" rather than merely using "yahoo" or "hotmail" e-mail.
Right now, I'm interested in having a FREE php hosting, since it's only a start so paying to have "smtp" based e-mail makes less sense (which I believe I almost always get when I pay towards a Web Hosting).
Now, some website offering "php web hosting" for free such as companies like: http://www.0php.com/...PHP_hosting.php
says they offer POP3 e-mail as a part of their package, so is this what I need OR should I be looking for something that specifically says "SMTP" or something ???
I'm bit at sea as what EXACTLY do I need in order to be able to receive the "submitted form" on some e-mail.
Can anyone point me in the right direction OR any website that offers free php hosting having feature that allows me to RECEIVE this submitted form on some e-mail ???
PHP - Receive Submitted Contact Form Details ???
1 reply to this topic
Posted 06 July 2006 - 02:38 PM
POP based email is used to recieve email, not send. If you can recieve POP email, most likely you can send SMTP based email. Try it:
<?php mail('firstname.lastname@example.org','This is a test','This is just a test','From: email@example.com'); ?>
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users