allow sending email asynchronously (bug 951703)

close #1578