Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What is a suitable module for sending emails from capturing form data. The application is run on a single machine, Windows XP, ActiveState 5.8 and Apache with no email server.

Replies are listed 'Best First'.
Re: Sending Emails
by talexb (Chancellor) on Oct 28, 2004 at 03:07 UTC

    I've had good success with Mail::Sendmail .. just fill in the SMTP information the same as you do for a mail client, and it just works.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Re: Sending Emails
by reneeb (Chaplain) on Oct 28, 2004 at 06:07 UTC
    For sending email I can recommend Mail::Sender. But you need a smtp-server to send it. It doesn't matter, whether this smtp-server is on your server or on an other server. Mail::Sender also provides auth-methods.

    To validate an email-address you should use Mail::RFC822::Address or any suitable module.
Re: Sending Emails
by aquarium (Curate) on Oct 28, 2004 at 03:39 UTC
    Make sure that the email addresses you get with the webform are thoroughly checked to contain valid email address characters only....otherwise you may find your box being used as a spam relay.
    the hardest line to type correctly is: stty erase ^H

      Could you please explain how checking for 'valid email address characters' (I take it you refer to RFC822) can prevent your box to become a spam relay?

      Even if you do check, your box could be used as a spam relay, but at least you know the email addresses are 'valid' accoring to the RFC822. Preventing the user to specify the recipient of the email at all seems a better approach to me.

      --
      b10m

      All code is usually tested, but rarely trusted.