Originally Posted by hawk__0
Hm... not what I'm looking for. I don't know how to use strictly PERL to send mail. That example is done with unix/linux command line tools. I already used mutt/sendmail but I am trying to work beyond that.
It look as if you pulled some of the snippet from the CPAN.org site here:
And when you say 'won't work'...what does it actually do/say? How doesn't it work? Version/distro of Linux? Is the net::smtp module loaded and installed, and is there more code than what you posted?
The link posted here should give you full usage examples. The way you've got it, it presumes your mailhost is called 'mailhost'..if it's not, it obviously won't work. Also, if that mailhost isn't set up to accept incoming relay traffic from you, or if you need user id/password, it won't work either.