On Fri, Apr 03, 2009 at 01:45:11PM +0100, Tomas Doran wrote: > Terence Monteiro wrote: >> >> Controller action code: >> # fetching $content >> $c->res->body($content); >> my $ctype = $attach->contentType; >> $c->res->content_type($ctype); > > Setting the body expects the parameter to be a file handle unless its a > straight scalar. > > Your $content, I guess, is a reference to some object, which is what is > causing the issues.
Thanks a ton! It is indeed a reference to a Mail::Message::Body::Lines object. On stringification, the code works! -- Regards, Terence. http://www.deeproot.in Ph: +91 (80) 4089 0000 _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
