|Just another Perl shrine|
Catalyst::View::Email::Template - "no sender"by kwaping (Priest)
|on Jul 30, 2010 at 01:44 UTC||Need Help??|
kwaping has asked for the
wisdom of the Perl Monks concerning the following question:
I keep getting a "no sender" error when trying to send email via Catalyst::View::Email::Template. I'm pretty sure it's some sort of config error, but I have tried everything I can think of with no resolution. Please take a gander at my config and code and tell me what you think I should do. Thanks!
Here's the code that sends the email:
From MyApp.pm (not its real name, but the equivalent):
I have no config for View::Email because I don't plan on sending any non-templated emails. I've tried it with and without, no change. I also have no config directly in either my View::Email or View::Email::Template modules. I tried putting some in there but it didn't resolve the issue. Here's some of the debug output from Catalyst:
I will post more debug output upon request, but there's nothing in there that appears useful, to my eyes.
Update: Solved! It appears that I was mis-interpreting the "no sender" error as being a config error. It was actually referring to the fact that I had not specified a "from" parameter. (I assumed it would use the "sender" values as a default.) Thanks to Oleg Kostyuk on the Catalyst mailing list for the fix!
It's all fine and dandy until someone has to look at the code.