Exercises, examples and other material relating to training module P410. This topic is presented on public course
Using Perl on the Web
Using Perl on the Web - CGI, mod-Perl, and other standards. Sessions, cookies, content management, etc.
This advanced course takes the Perl programmer ... http://www.wellho.net/course/pwfull.html [course] |
When you send emails, you'll use a "sendmail" protocol / service, whereas when you receive them, you'll typically use a "pop3" or similar protocol / service. ... http://www.wellho.net/mouth/2232_Why ... ther-.html [short article] |
Carrying on from the email work I described in a recent article, I wrote an example today in Perl where I used the mailx program to send an email, piping ... http://www.wellho.net/mouth/2235_Sen ... -Perl.html [short article] |
How many emails do YOU get each day? How many of them are unsolicited bulk emails that you throw away without evening opening them, or have your server ... http://www.wellho.net/mouth/872_Email-metrics.html [short article] |
#!/usr/bin/perl
use Socket;
use FileHandle;
# pop3_read - pull in our email!
($#ARGV > 1) || die "Usage: $0 [CLEAR]\n";
$host = $ARGV[0];
$user = $ARGV[1];
... http://www.wellho.net/resources/ex.php4?item=p410/pop3.pl [code sample] |
#!/usr/bin/perl
# Program to handle mail requests ....
while (1) {
$line = ;
last if ($line =~ /^\s*$/);
chop $line;
... http://www.wellho.net/resources/ex.php4?item=p410/mailsender.pl [code sample] |
$seatown = "Swanage";
$bottle = http://www.wellho.net/resources/ex.php4?item=p410/automail [code sample] |
Using Perl to answer emails Ð from tasks as simple as sending an automated acknowledgement through to providing fully fledged systems based on email and their content. List servers such as majordomo are written in Perl after all!
This topic is presented on public course
Using Perl on the Web
Examples from our training material
| am2 | Emailing from a Perl script to a variety or recipients |
| automail | Emailing from a Perl Script |
| mailsender.pl | Mail form - sending email from Perl |
| pop3.pl | Using POP3 protocol to read emails into a Perl program |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Cron, at and batch.
Can I find the user's name?
Mailing modules from the CPAN.
Using SMTP directly - RFC 821 and 822.
Reading email via POP3.
Automatic processing of emails.
An email responder.
Using autosend / autoreceive to pass firewalls.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.