in reply to Send Email If Result of Dig command

It is definitely possible to send email from Perl. How you send it depends on if you have a mailserver available on your network.

If a mailserver is available some people use the system's sendmail or use Net::SMTP. There are other modules available that handle the low level details for this. MIME::Lite is a common one but it is not suggested for new programs. The documentation for MIME::Lite recommends using Email::MIME or MIME::Entity and Email::Sender. I still use MIME::Lite for my simple needs.

If no mailserver is available then you'll need a module to connect you to a webemail account on something like GMail. Try Sending mails via gmail, Mail::Webmail::Gmail, or Email::Send::Gmail.

  • Comment on Re: Send Email If Result of Dig command