From: James Gray Date: 2008-11-18T03:45:37+09:00 Subject: Re: [solved, kinda] Re: Why does tmail stop my CGI script form working? On Nov 17, 2008, at 11:38 AM, Chad Perrin wrote: > On Tue, Nov 18, 2008 at 01:20:16AM +0900, Jeremy McAnally wrote: >> Why not try mailfactory if you're just sending e-mail? If it's just >> tmail screwing up. I thought perhaps you were parsing e-mail or >> something. > > The problem actually appears to be one of something on the server > being > misconfigured so that I cannot properly install and `require` gems. > > Also . . . as someone pointed out to me off-list, I forgot to change a > set of single quotes in the `mail` command into double quotes. The > line > in question should actually read: > > `echo "#{body_c}" | mail -s "#{sub_c}" #{to_c}` I would prefer to just avoid passing the body through the shell: open(%Q{| mail -s "#{sub_c}" #{to_c}}, "w") { |mail| mail << body_c } You could use mail's escapes to avoid passing the subject as well. See the man page for details. James Edward Gray II