mailer with attachment, file upload to server, and failure page