Fix 'mail' as transport. (refs #66)

See the issue #66.