?
Solved

Sending email through perl

Posted on 1998-10-11
1
Medium Priority
?
227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
Six Sigma Control Plans
Suggested Courses

771 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