Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Perl script calling in another Perl script

by beachbum (Beadle)
on Feb 15, 2006 at 17:00 UTC ( [id://530447]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl script calling in another Perl script
in thread Perl script calling in another Perl script

Using a email module like NET::SMTP or your example above can provide a more secure solution for you.

If you primary concern is to prevent spam:

  • Don't have an smtp server running unless your are hosting your own and know what you're doing.
  • Hard code the email addresses (to address and from address) in your script rather than allowing user controlled inputs. This way, even if someone does abuse the script, they won't be able to specify where the email is going.
  • Make sure that the only interface to your mailer is a web page. Worst case, if some script kiddie is spamming your box with mail, you have the weblogs and can have his isp to turn off the account.
    • Comment on Re^3: Perl script calling in another Perl script
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Node Status?
    node history
    Node Type: note [id://530447]
    help
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others scrutinizing the Monastery: (4)
    As of 2024-04-24 02:52 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found