Re: [Catalyst] Defining ARRAY in Config::General config

2010-10-08 Thread Alexander Hartmaier
If you're referring to Catalyst::Plugin::Email you shouldn't use that
any more as mailing doesn't need to be a plugin but a view.
Try Catalyst::View::Email(::Template)

--
Best regards, Alex


Am Dienstag, den 21.09.2010, 06:29 +0200 schrieb Pavel A. Karoukin:
 Hello,


 I am using Catalyst::Plugin::Mail and want to define email config in
 myapp.conf. But C::P::Mail expects email config variable to be array
 ref. How I can assign array value to config variable in myapp.conf?


 Regards,
 Pavel




***
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.
***

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Defining ARRAY in Config::General config

2010-10-08 Thread Denny
On Fri, 2010-10-08 at 19:46 +0200, Alexander Hartmaier wrote:
 Am Dienstag, den 21.09.2010, 06:29 +0200 schrieb Pavel A. Karoukin:
  I am using Catalyst::Plugin::Mail and want to define email config in
  myapp.conf. But C::P::Mail expects email config variable to be array
  ref. How I can assign array value to config variable in myapp.conf?
 
 If you're referring to Catalyst::Plugin::Email you shouldn't use that
 any more as mailing doesn't need to be a plugin but a view.
 Try Catalyst::View::Email(::Template)

Following on from that advice (which I was also given, and followed),
here's a sample Catalyst::View::Email(::Template) config I had to work
out earlier this week.  There are a remarkable shortage of sample
Catalyst configs online, and I found it quite frustrating just trying to
find the right syntax to use - even though it's incredibly simple once
you know how.  Hope this helps.

Regards,
Denny


de...@serenity ~/code/shinycms $ cat shinycms.conf 
name   ShinyCMS
author Denny de la Haye 2...@denny.me

default_view HTML

View::Email
stash_key email_data
default
content_type text/plain
charset utf-8
/default
sender
mailer SMTP
mailer_args
Host localhost
/mailer_args
/sender
/View::Email

View::Email::Template
stash_key email_data
template_prefix emails
default
content_type text/html
charset utf-8
view HTML
/default
sender
mailer SMTP
mailer_args
Host localhost
/mailer_args
/sender
/View::Email::Template



signature.asc
Description: This is a digitally signed message part
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/