| Comments |
| raghu posted on 2007-04-16 10:53:21 |
| I am getting the Message \" Failure\" what to do. The form upon filling goes through and i get this message ---------------------- Veselin: you need to check with your hosting company how to send emails using PHP |
| Mike posted on 2007-03-31 05:53:09 |
| Killer tutorial, this has worked perfectly for me until I put it on my host\'s server. I am getting this error: Notice: Undefined index: email in F:\\users\\madcap-pdc\\NEWSITE\\contact.php on line 20 Funny thing is that it sends the e-mail just fine...it just leaves this unsightly blemish on my contact page *scratches head* ------------------- Veselin: this is a notice which can be hidden by adding error_reporting(0); at the top of your php script or instead of if ($_POST["email"]<>'') { which I think is your line 20 you use if (isset($_POST["email"]) AND $_POST["email"]<>'') { |
| Hana posted on 2007-03-24 05:37:46 |
| I did as what you show but it doesnt work. It appears like this(check the bottom of this page): http://www.freewebtown.com/hanamichiru1689/Contact%20Us11.html --------------------------------- Veselin: you need to put the code on PHP page and not HTML |
| Telemicus posted on 2007-03-14 22:30:27 |
| Can you confirm if this script will hide my email address from spambots? If not, is there any way to do that? Thanks --------------------------- Veselin Stoilov: there is no way spambots find out your email address using this script. You can combine it with captcha so spambots cannot automatically send you emails. |
| Eduardo Gimenez posted on 2007-03-14 07:06:00 |
| Hi I Got This ERROR Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in \\172.21.6.16\s004\pdv.org.mx\test.php on line 11 Failure |
| Telemicus posted on 2007-03-12 23:07:11 |
| I have been reading that spammers can inject headers into contact forms to use your email server to send mail via the cc command and bcc command as well as even sending attachments. Is there a simple way to block this in your script above? I am having difficulty understanding how to do this ------------------- Veselin: to protect your contact from from header injects you can combine this example with the <a href="http://www.phpjabbers.com/captcha-image-verification-php19.html">captcha verfication</a> |
| nancy posted on 2007-01-12 10:23:29 |
| Above the code , we can send only one email. If I like to have a email drop down box, and want to sent by select email inthe drop down box, can we do it? ----------------------------- Veselin: yes you can create a drop down menu and have all the emails listed there. And the email message can be sent to selected email address. |
| mangesh posted on 2006-11-15 01:26:30 |
| hi iam trying to send messge .The mail is send successfully but the problem is the message aapear in asingle line what to do? -------------------------- Veselin: try using n or <br> to add a new line or change $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; to $MESSAGE_BODY .= "Comment: ".$_POST["comment"]."<br>"; |
| Ian posted on 2006-08-08 16:23:05 |
| Hi. It is asking me where test.php is. I don't see any reference to this file besides in the form action. It cause the form not to work. Any ideas? ---------------------- Veselin: You need to save the file as test.php |