Test daemon to send emails with attachment