added STARTTLS, SSL, and mail attachments