jcorbin — 2010-04-23T16:42:51-04:00 — #1
I have a question about the %recipient alias verses @allow_mail for the nms-cgi FormMail Version 3.14c1 script.
I was going though the readme file on this script and I was wondering if choosing the "alias" option and modifying the script like the following example.
[I]%recipient_alias = (
'1' => 'firstname.lastname@example.org',
Then in the HTML document add the line:
<input type="hidden" name="recipient" value="1" />[/I]
Would this reduce the amount spam received verses putting the email directly into the HTML like in this example?
<input type="hidden" name="recipient" value="email@example.com,firstname.lastname@example.org" />
The reason i'm asking is, I found out about this script though my host's forum and they had a setup guide that said set it up with the email address in the the HTML. Of course i'm thinking that's going to lead to excessive spam...
stomme_poes — 2010-04-23T17:12:59-04:00 — #2
You should NOT have your email address in the HTML! Not in a form, anyway.
The whole point of the script is to deal with that for you, safely hidden in the server.
The choice of configuration file is the only thing that can be
configured via a hidden form field.
Hm, so you're using NotMatt'sScripts but not TFmail version 1.38?
jcorbin — 2010-04-23T17:18:12-04:00 — #3
That's what I thought. The tutorial said to do it that way which I thought there should be a better way to do things. Then I read the readme on the script and it mentioned about the alias method which I thought was better.
stomme_poes — 2010-04-23T17:23:30-04:00 — #4
I'd use that one rather than the plain old Formmail if you can.
Basically the London PM tried to make the original scripts suck less, til they were happy they could release something without creating the anti-christ or something. The original scripts were terrible. These are better. The TFmail is near the bottom.
jcorbin — 2010-04-23T19:27:56-04:00 — #5
I was planning on using NMS FormMail Version 3.14c1. Right now i'm working on my site.
Anyway thanks for the help I downloaded the script you recommend and i'm just wondering if i'm understanding this correctly.
I'm going to save them all in the cgi-bin (which I have that password protected and set the permissions to 755 which is what my host says to do)
If I save all the needed files in the same directory, then I can just leave those settings as shown in the example below?
use constant LIBDIR => '.';
Second question is since it's going to be an HTML form then I set MAILPROG to the following setting below?
use constant MAILPROG => 'SMTP:mail.mydomain.com';
jcorbin — 2010-04-24T08:13:01-04:00 — #6
I did some re-reading and I answered my own questions
jcorbin — 2010-04-24T19:36:22-04:00 — #7
I just got it installed and working on my site, made a extremely generic form page just to test it, and it worked as it should!! Thanks Stomme poes I'm really glad I took your advice! It's way better then the other one!!