using erlang to send email (text,html,attachments) with smtp