Solved

Sending email through perl

Posted on 1998-10-11
1
219 Views
Last Modified: 2010-03-05
I am _VERY_ new to perl, and am wanting to have my web page
send an email to me when a user submits a form.  I want the user to enter his or her email address in an INPUT in the FORM on one page.  When the form is submitted to some file (let's call it handleForm.pl), I want perl to email me at myaddress@mydomain.com with the following syntax:

Subject: Email Address
Body:  Here is a new email address:  /* print the email address that the user entered back on the form */

Like I said, I am really new to this, so I need a good explanation and code.  Pseudocode won't do it!  Thanks!
0
Comment
Question by:mitchell042997
1 Comment
 

Accepted Solution

by:
mazares earned 150 total points
ID: 1205250
Matt Kruse's mailer.cgi, one of his skillions of freely-distributed scripts, was (a) what I originally borrowed and modified to do exactly what you want to do, and (b) the starting point for how I taught myself how to use Sendmail in other ways.

The last email address I saw for Matt was mkruse@saunix.sau.edu. A web search on Perl will take you to archives containing his scripts -- and probably to a site of his own where this and other scripts will be available. Best use of that script though: use it to teach yourself how to use Sendmail with Perl scripts.

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question