5 replies
by joseph moore
My company has a home-grown application that uses Perlscript (with ActivePerl), and we send e-mail using Blat. It does work fairly well, honestly.
Here is the Blat setup:
First, get a newer copy of Blat. One is here:
http://pages.infinit.net/che/blat/blat.html
Download the ZIP file from this page, and unZip it onto the system you want to send mail from. Next, setup Blat with the following command line:
Blat -install YOURMAILSERVER e-mailaddress@yourdomain.com
So, Blat needs a SMTPserver to send the mail. I originally though Blat had its own SMTP engine, but it does not. It is just a command-line mail client. So, if you run a SMTP server, just put the IP address for your server in the YOURMAILSERVER section.
After that, put in the e-mail address you want this install of Blat to use. So, if your SMTP mail server is 10.1.1.1 and you host the domain DOMAIN.COM, the Blat setup could be:
Blat -install 10.1.1.1 blatmail@DOMAIN.COM
You get the point.
by sfix
by joseph moore
Now, how you call Blat is up to you. For my company, we have a Windows BAT file that calls the Perlscript, then the BAT file calls Blat and sends the mail. So, you can do it that way. I think it is easy writing a 1-line BAT file to do the Blat send,and just have the Perl script call this BAT file.
Hope this gives you a place to start.
by sfix
by sfix
This discussion is closed to new replies.
Trending Linux posts
Sort by Trending