Mail would not send within a function?
Added link to accapella's
Removed useless commented code.