mail = params[:mail]
recipients = mail[:from]
subject = mail[:subject]
....
That saves you some typing.
But if you want to put your hash variables in local variables, then
you can't. Well, actually, you can, by using eval. But that's very,
VERY evil and will open the infinite floodgate of security problems.
thanks for that snippet. I find that seeing these little titbits of
code from time to time really helps. They become seeds that later
spring to life when you want to do something and dont quite know how.
The problem I find is either remembering these things, or knowing how
to put them somewhere that I can remember to find them. Thank
goodness for Google.