I do not have much Perl experience, I'm just looking to send an email. I don't think there is an easy method of doing this in Perl as in PHP.
I've always been confused by sendmail and postfix and all of that. I would also like to be able to send an email from the shell, I've been unsuccessful in the past attempting that.
Thanks.
open ( MAIL,"¦/usr/sbin/sendmail -t");
print MAIL "To: myname\@myaddress.com\n" ;
print MAIL "From: notify\@somedomain.com\n" ;
print MAIL "Subject: Comments\n\n" ;
print MAIL "What a message!" ;
close ( MAIL ) ;
In Perl I can send to any recipient, strangely in PHP I can only send emails to my domain, as of a few months ago.