actionmailer sends from commandline but not from web

Hello all,

I'm having trouble with this simple email class I made for postbacks. When I run this from the command line an email is sent, however when I access this .rb file through a browser nothing happens.