Sure, I can get rid of `var`. 

I used _.result since config.smtp might be undefined, but I guess that's probably not obvious. How about

    from = from || config.smtp ? config.smtp.from : null

Really, I'm not sure why this would be called if SMTP isn't set up, but it was blowing up the tests.