public void send ( String subject , String content ) throws MessagingException { MimeMessage message = compose ( subject , content , propertiesHelper . getStringProperty ( "mail.to" ) ) ; transport ( message ) ; }
Sends email with subject and content to receivers specified in property file after key mail . to