added log messages in emailing service