Set hostname so confirmation emails work.

Not 100% certain this is the best place to set this, but it's working for me without any obvious negatives so far.
Merge pull request #3 from r00k/patch-3

Set hostname so confirmation emails work.