SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast jcorbin's Avatar
    Join Date
    Apr 2010
    Location
    Chicago, IL, US
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question question about recipient alias versus @allow_mail for nms-cgi FormMail

    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.

    %recipient_alias = (
    '1' => 'one@your.domain',
    );

    Then in the HTML document add the line:

    <input type="hidden" name="recipient" value="1" />



    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="you@your.domain,me@your.domain" />

    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...

  2. #2
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,233
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    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.

    Quote Originally Posted by london perl mongers
    TFmail is configured via
    text files on the server rather than via hidden form fields, has
    templates for output, and can support HTTP file uploads.
    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?

  3. #3
    SitePoint Enthusiast jcorbin's Avatar
    Join Date
    Apr 2010
    Location
    Chicago, IL, US
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    om nom nom nom Stomme poes's Avatar
    Join Date
    Aug 2007
    Location
    Netherlands
    Posts
    10,233
    Mentioned
    47 Post(s)
    Tagged
    1 Thread(s)
    http://nms-cgi.sourceforge.net/scripts.shtml

    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.

  5. #5
    SitePoint Enthusiast jcorbin's Avatar
    Join Date
    Apr 2010
    Location
    Chicago, IL, US
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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';

  6. #6
    SitePoint Enthusiast jcorbin's Avatar
    Join Date
    Apr 2010
    Location
    Chicago, IL, US
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did some re-reading and I answered my own questions

  7. #7
    SitePoint Enthusiast jcorbin's Avatar
    Join Date
    Apr 2010
    Location
    Chicago, IL, US
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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!!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •