Solved

Sending email through perl

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

18 Experts available now in Live!

Get 1:1 Help Now