in reply to Re^2: sending email through cgi
in thread sending email through cgi

If you happen to be on a Linux box, then you might find it easiest to use the sendmail command (or alternative).

Perl doesn't have email capabilities built in, so it's recommended to install a module for this if you don't already have one installed. This has become quite easy with cpanminus.

Replies are listed 'Best First'.
Re^4: sending email through cgi
by taint (Chaplain) on May 18, 2014 at 21:01 UTC
    Greetings, AdrianJ217.

    It's difficult to provide detailed responses, without more information from you. But w/o that information;
    On a UNIX-ish platform:

    # see if sendmail exists, and where it's located $ which sendmail
    if true, you will be able to use, or create a Module that utilizes the capabilities that the Sendmail MTA provides; else, discover the installed MTA, and if any, what it provides.
    Do note, as has been rightfully noted in other replies; you run quite a risk, providing an email form in the wild. If abused, or not properly secured, you can be 1) overwhelmed by SPAM. 2) Have your box HACKED. 3) become BLACKLISTED.

    There are ways to prevent the potential pitfalls of using an email form in the wild, and many of the Monks here could easily help you overcome them. But without greater detail on your part. It will be difficult to advise, or provide direct details.

    --Chris

    ¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH