further working on email functionality.

Signed-off-by: Michel Verbraak <michel@1st-setup.nl>