added javadoc to mail service