send a html email with or without an attachment