[jifty-devel] Login

John Peacock jpeacock at rowman.com
Wed Apr 5 15:41:51 EDT 2006

Jesse Vincent wrote:
> On Tue, Apr 04, 2006 at 01:34:07PM -0400, John Peacock wrote:
>> 1) Where is the contents of the etc/config.yml documented? 
> It's not. It needs to be. If you're going to UTSL, Jifty::Config is the
> right place to start. Jifty::Notification should have the relevant
> usages of the Mailer config.
>  Mailer: Sendmail
>  MailerArgs: []
> Should do what you want.

That's the default and it didn't work (and I don't know why).  I played 
around with:

Mailer: SMTP
MailerArgs: [Host => 'localhost']

which would seem to be right (and is what Email::Send suggests), but it 
didn't work.

It turns out that Email::Send expects MailerArgs to be passed as an 
array-ref (with is automatically turned into a hash-ref if the number of 
elements is even).  Unfortunately, the YAML parser takes the above code 
and creates a one element array-ref with the contents of:

	"Host => 'localhost'"

i.e. the fat comma is not significant.  Much swearing ensued, until I 
was able to discover that if I pass just 'localhost' (i.e. intentionally 
a single/odd array), then Email::Send DTRT.


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748

More information about the jifty-devel mailing list