Solved

Sending email through perl

Posted on 1998-10-11
1
217 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

929 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now