Php Sendmail Form

Hello Everyone,<br /><br />I am not sure if this is the place to post a question, but since it is a HOW-TO question I thought I would post it here. My question is, How can I get or write a contact form in PHP to work with TCH HTTPs server and PHP? <br /><br />A while back a read a post from some who created a PHP form to send email, but instead of having the email spelled exactley he broke it up into variable and concantinated the variable to send the form. This is a great idea since those pesky web bots cant read your email address and spam you.<br /><br />I have a contacts page that I want to customer to be able to fill out a form instead of using the Mailto tag. It my opinion a hassle when the html page opens my email program to a email. I would much rather just fill the info out on the website and send the info. <br /><br />I would also like to use the same script with some simple modifing to send an inquiry form that is secure since the customer may be including credit card info. <br /><br />I read an article in the forums that is similar but there was no answer.<br /><br />In summary here are the things I would like to have:<br /><br />1. PHP script to send an email to the web page owner so the to email wouldn't change<br /><br />2. Email address broken up into 4 vaiables for example. <br /> var 1 = pla<br /> var 2 = inj1<br /> var 3 = @be<br /> var 4 = llsouth.net<br /><br />3. Work with TCH's free HTTPS<br /><br />Thanks for the help,<br /><br />Mr Wisdom12 (Who is not so full of wisdom when it comes to PHP)<!--content-->
I use MailMe from <a href="http://www.arkie.net/~scripts/mailme/" target="_blank">http://www.arkie.net/~scripts/mailme/</a><br /><br />It has the e-mail address embedded in the script, so bots can't read it. You can configure it to allow for multiple e-mail addresses, too, if you'd like.<!--content-->
You may want to check out <a href="http://www.surefirewebdesign.com/scripts/" target="_blank">this link</a> to see if it may suit your needs. Very good script and easy to set up.<!--content-->
Steve's right, Jack's script is pretty good.<br /><br />Moving the post for better organization.<!--content-->
stevevan, I clicked the link and I get a page cannot be found error, even when delete the /script off the end of the webaddress. <br /><br />Its trying to send me to this address <a href="http://www.surefirewebdesign.com/scripts/" target="_blank">http://www.surefirewebdesign.com/scripts/</a><br />b<!--content-->
The server must have been down... try again. It's my site. I'll be glad to help you in any way.<!--content-->
I've used something called <i><b>Jack's FormMail</b></i>. It's a PHP script that allows users to send email from a form on your web site.<br /><br />It's very easy to install and implement. I'm not sure if it's the same formmail script being offered by Surefire, but I found it here ... <!--coloro:blue--><span style="color:blue"><!--/coloro--><b>www.dtheatre.com/scripts/formmail.php</b><!--colorc--></span><!--/colorc--><!--content-->
From what I understand, it's not the same person, but based upon the principle. I'll defer to Surefire to provide the details. (Or better still, go to his website!)<!--content-->
Thank you all for your help. I think this will work out great.<!--content-->
I used their form mail script a long time ago... it might have changed, but I recall that the goal of the script was to basically be an exact copy of the popular, but insecure, Matt's FormMail cgi perl script. At the time, the recipient email address (your email) was passed to the script by a hidden tag in the form. This is the main reason why Matt's FormMail can be used for spam exploits. <br /><br />Regardless of whose code you use, the recipient must be hardcoded into the script or it is vulnerable to hijacking. You don't want to be accused of spam and the rest of the folks on your server don't want that either.<br /><br />Be careful.<!--content-->
 
Top