[Catalyst] Catalyst::Plugin::Email not working
Alexander Hartmaier
alexander.hartmaier at t-systems.at
Thu Dec 3 10:02:05 GMT 2009
You shouldn't use C::P::Email any more, there is no need for that
function to be a Catalyst plugin.
Take a look at Catalyst::View::Email(::Template) instead!
--
Best regards, Alex
Am Mittwoch, den 02.12.2009, 21:46 +0100 schrieb Meeko:
> Hi everyone. I have been developing an app for quite some time on a
> local machine here (OS X 10.4) which at various times throughout its
> life it needs to send out e-mails. I have been using
> Catalyst::Plugin::Email to send those e-mails, using authenticated
> SMTP from an e-mail account I have with Rackspace. My configuration
> looks like this:
>
> __PACKAGE__->config->{email} = [
> 'SMTP',
> 'my.smtp.server',
> username => 'MyUsername',
> password => 'MyPassword',
> ];
>
> Then in my app, whenever I need to send an e-mail, I use:
>
> $c->email(
> header => [
> From => '<me at mydomain.com> Me',
> To => 'email at recipient.com',
> Subject => 'The Subject.',
> ],
> body => "$body",
> );
>
>
> It's been working great during development, I get all the e-mails when
> they are supposed to be going out. The problem is that now that I am
> getting close to finished, I have done a test deployment to my public
> web server (CentOS 5.2), and now e-mails no longer get sent. I have
> verified that Catalyst::Plugin::Email is installed, and that I have
> the correct config information. Everything else about the app runs,
> and when it comes to a place where an e-mail should go out, it gets by
> it with no problem, but yet I never receive the e-mails. Also, I am
> unable to find any error log entry that might point me in the right
> direction.
>
> So my question is, first of all, is there something blindingly obvious
> I might be missing during deployment? Is there anything else that
> needs to be installed for Catalyst::Plugin::Email to work that I might
> not have installed - but yet would not cause the app to fail at
> startup? And finally, where should I look for any clues as to what is
> going on (like error logs, etc...)?
>
> Thanks for any help!
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
T-Systems Austria GesmbH Rennweg 97-99, 1030 Wien
Handelsgericht Wien, FN 79340b
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
Notice: This e-mail contains information that is confidential and may be privileged.
If you are not the intended recipient, please notify the sender and then
delete this e-mail immediately.
*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*"*
More information about the Catalyst
mailing list