Added implementation of sending email with attachment using javaMail.