Correct usage of FROM in email creation

A fix for issue #765