Hour 8. Creating an Email Feedback Form

Web browsing isn’t the most popular Internet application—email is. There are many circumstances under which you might want to send email from a CGI script. You might want to send the data submitted by a user to the person who has to process it, or you might want to acknowledge a user’s form submission by sending him an email message. In this hour, I’ll explain how you can send Internet email from a CGI program. The following topics will be discussed:

  • Real-world examples that illustrate why you’d want to send email from CGI scripts

  • A brief overview of how Internet email works

  • Using the Net::SMTP module to send mail using Perl

  • How to use sendmail to send email messages from the command line of a UNIX-based ...

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.