View Full Version : Formmail help with sending an auto e-mail

06-11-2007, 10:22 AM

I am not that experienced when it comes to coding... :confused:

I have a form that requires people to register in order to receive a password that will allow them to download our software.
I was wondering how I can get my form to send an automatic e-mail back to the sender giving them that password they need.
Right now anyone can fill out bogus information and it just re-directs them to an html page that has the password on it... not good.
I am currently using WH FormMail. Is there just a line of code I can add to the script or directly on my html page?
Any help would be greatly appreciated.


WestHost - MCox
06-11-2007, 10:33 AM

Although I'm not familiar with setting up exactly what you are asking for, the FormMail site has a lot of information on setting up custom options in the script. The FormMail site is found at:

06-11-2007, 11:24 AM
Thanks, I'll do some more research on that site.

Essentially, I want to create the same kind of action that happens when you register on this site.

Upon signing up, then clicking the register button, you are directed to a page that informs you that you will be receiving an e-mail with a link to confirm registration. An e-mail is then automatically sent to the user.

06-11-2007, 11:37 AM
What you are wanting to do is a bit beyound the defaults available in FormMail. It sounds like you need a programer to set up some custom code for you. ;)

TFMail from NMS is a bit more robust and you might be able to manipulate its default use to meet your needs. http://nms-cgi.sourceforge.net/scripts.shtml NMS scripts are based on the original FormMail. Not sure why WH won't offer them as an alternative to the original since in my opinion they are better.

If you don't think TFMail can suite your needs or you have questions about it let us know. What you want to do is even a bit beyound TFMail but you could at least send the person filling out the form an email with the password. If they entered a bogus email then they would never get the password.

06-11-2007, 11:42 AM
Thanks for your input. I will give it a try.


06-11-2007, 11:44 AM
I just thought of another idea that may suite what your doing better. There is a forum software out there called SMF that has an add on modification to adminsiter a download area. In fact you wouldn't really even need it if you wanted to use the built in attachements feature and restrict use of downloads of attachements to registered users! You might want to have a look at that. I assume that if you are offering software that you would want to supply some type of support for it and you could use the forum for both that and to distribute the software. :)

SMF Main (http://www.simplemachines.org/)
Modifications Available (http://custom.simplemachines.org/mods/index.php?action=search;basic_search=download)

06-11-2007, 06:22 PM
Just a thought, but couldn't you get you use something like dadamail or Westhost's autoresponder? Does the password vary for each person, or is it a constant?