|
Project Information
Members
Featured
Downloads
Wiki pages
|
GSmtp is a command line smtp mailer optimized for google's smtp server using tls. Its purpose is to quickly send out emails in e.g. backupscripts. It supports multiple attachments. It can be used with gmail accounts but also with google apps accounts set up for mail. No configuration needed. Example
Gmail:
./gsmtp.pl
--username="testuser@gmail.com"
--password=thePassword
--from="testuser@gmail.com"
--to="targetuser@host.com"
--subject="Testemail dude"
--message="what I am here for is..."
--attachments="/tmp/file1.txt,/tmp/file2.txt"
Other:
./gsmtp.pl
--host=smtp.mycompany.com
--port=25
--username="testuser@mycompany.com"
--password=thePassword
--from="testuser@mycompany.com"
--to="targetuser@host.com"
--subject="Testemail mate"
--message="The message"
--attachments="/tmp/file1.txt,/tmp/file2.txt"Importantif you are using Net::SMTP::TLS 0.12 you have to edit the "TLS.pm" because it contains an unresolved bug but Joseph DiPaolo submitted a fix. (more info: http://rt.cpan.org/Public/Bug/Display.html?id=33031). Here is the complete file: http://gsmtp.googlecode.com/files/TLS.pm You can find the file in /usr/local/share/perl/5.8.8/Net/SMTP/ |