[Catalyst] Catalyst-View-Email question

Steve Kleiman steve at prodhub.com
Fri Jan 15 06:41:25 GMT 2010

Forgive me if there's another mailing list I should've posted this at. It didn't seem to squarely fit the Catalyst list because it may be a mailer issue. Not sure.

I'm trying to use Catalyst::View::Email and Catalyst::View::Email::Template. The error I get is:

> [debug] C::V::Email::Template uses default view Prodhub::View::TT=HASH(0x1047840e8) for rendering.
> [debug] C::V::Email uses default content_type text/plain.
> [debug] Rendering template "_email/invitation_to_project-HTML.tt2"
> [debug] Passing page through as text: _email/invitation_to_project-HTML.tt2
> [debug] C::V::Email uses specified content_type text/plain.
> [error] Caught exception in Prodhub::View::Email::Template->process "Couldn't connect to localhost at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Action.pm line 65"
> [error] Caught exception in engine "Can't use string ("a6868e20c5ff9800b88e1a6ac7eef75e") as a HASH ref while "strict refs" in use at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst/Engine.pm line 117."

The configuration I'm using in .conf is below. I get this error regardless of whether I try Sendmail or SMTP.

If it makes any difference, I'm on Mac linux.

Thanks in advance for any insight.

Steve Kleiman

> <View::Email>
> 	stash_key				email
> 	<default>
> 	    content_type		text/plain
> 	    charset				utf-8
> 	</default>
> 	<sender>
> 		mailer				Sendmail
> 		# mailer				SMTP
> 		# mailer_args is passed directly into Email::Send 
> 		<mailer_args>
> 			Host			mail.prodhub.com # defaults to localhost
> 			username		mail at prodhub.com
> 			password		xxxxxxx
> 	    </mailer_args>
> 	</sender>
> </View::Email>
> <View::Email::Template>
> 	template_prefix			"_email"
> 	<default>
> 		# Defines the default view used to render the templates.
> 		view				TT
> 	</default>
> </View::Email::Template>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20100114/605ea9d4/attachment.htm

More information about the Catalyst mailing list