Back to Table of Contents

Install and Configure SendMail Perl Module

For perl to be able to use your FirstClass server as the mail host, you need to install and configure the Sendmail.pm perl module.

Create a 'Mail' directory (Macintosh)

Inside your /Library/Perl folder on your Macintosh, you will find one or more folders, named 5.xx In the most recent version, create a folder called Mail

Create 'mail' Directory (Windows)

Create a new directory in \Perl64\site\lib and call it mail

Install Sendmail.pm module

In this lesson, you were asked to download and extract the support files. Inside there, you will find the Sendmail.pm module. Copy this file to the mail directory that you have just created.

Modify the Sendmail.pm document

Open Sendmail.pm in a text editor and modify the single line that is shown above to add the name of your SMTP domain name or IP Address for your FirstClass/OTSW server. This is likely mail.somename.com

  • NOTE: Do not remove the single quote from the beginning of the line
  • NOTE: Your files should be saved with UNIX linefeeds, otherwise Perl will get confused and return confusing errors when it attempts to run your scripts. Remember, with Mac OS X you are really running the UNIX operating system underneath a Macintosh user experience! On WIndows, you can use NotePad. On a Macintosh, I use Text Wrangler which can be found at http://www.barebones.com/products/textwrangler/download.html