[jifty-devel] Sending a web page as an email attachment

Jesse Vincent jesse at bestpractical.com
Fri Nov 30 14:46:36 EST 2007




On Wed, Nov 28, 2007 at 09:41:30AM -0500, Henry Baragar wrote:
> Hello,
> 
> How does one compile a Jifty/Mason script and get the output for sending as 
> an email attachment.  We have followed the instructions from:
> 
> http://www.masonhq.com/docs/manual/Admin.html#using_mason_from_a_standalone_script
> 
> which has the following code skeleton:
> 
>     #!/usr/bin/perl
>     use HTML::Mason;
>     use strict;
> 
>     my $outbuf;
>     my $interp = HTML::Mason::Interp->new
>         (comp_root  => '/path/to/comp_root',
>          data_dir   => '/path/to/data_dir',
>          out_method => \$outbuf
>         );
>     $interp->exec(<component-path>, <args>...);
> 
>     # Do something with $outbuf
> 
> It appears that the script is run (since there are messages when we inject 
> errors into the script), but we never get any output in $outbuf.
> 
> Do we have to do something special for Jifty?
> 
> What is the right (easiest?) way to do this in Jifty?

Jifty is replacing the output method of mason so it can be somewhat
clever about it. I almost wonder if the right thing is to actually just
do an HTTP GET.
--j

> 
> Regards,
> Henry 
> _______________________________________________
> jifty-devel mailing list
> jifty-devel at lists.jifty.org
> http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel
> 

-- 


More information about the jifty-devel mailing list