I am making a website for a camping and I need to send an email from Perl. However, sendmail is not installed on the server, and these are the only Perl modules installed:
- Class::Accessor
- Config::Tiny
- Math::Calc::Units
- Nagios::Plugin
- Params::Validate
- Perl 5.8.8
- TimeDate
Is there still a way to send an email form a Perl script?
I already phoned the webhosting company about this but it seems that they don’t even know what Perl is. Let alone sendmail. That calls itself a webhosting company.
Net::SMTP is a core module and should be included in any installation of Perl. The module documentation shows a simple example of sending an email. Use “perldoc Net::SMTP” to see if it is there and to see the example.