in reply to Re^2: Email::Sender does not work and I don't know where to start figuring it out
in thread Email::Sender does not work and I don't know where to start figuring it out

Have you read the manual? In particular:

Email::Sender::Simple tries to make a good guess about how to send the message. It will usually try to use the sendmail program on unix-like systems and to use SMTP on Windows.

Are you on a Unix-like system? If so, do you have a program called sendmail available? If so, is it correctly configured to send mail? Can you send mail using it from the command line?

Otherwise, is Email::Sender::Simple falling back to using SMTP? If so, have you set the correct environment variables so that it can find your SMTP server?

If the SMTP server is under your control, have you checked the logs to see if it's getting that far? If the SMTP server is not under your control, have you tried setting up your own SMTP server temporarily for testing this?

use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
  • Comment on Re^3: Email::Sender does not work and I don't know where to start figuring it out
  • Download Code

Replies are listed 'Best First'.
Re^4: Email::Sender does not work and I don't know where to start figuring it out
by xtpu2 (Acolyte) on Jun 09, 2014 at 19:30 UTC

    I have resolved the issue. This was achieved simpling by adding use Email::Sender::Transport::Sendmail; to the beginning of the script. The documentation made me believe that this was optional (possibly on a different system it would be, but evidently Email::Sender was having trouble figuring out a default way to send mail on my system, for whatever reason). Still not sure about the root causes, but happy that it's working :)

    To briefly answer your questions: yes, sendmail was installed and functioning correctly. I was not planning to use an SMTP server.