-STARTTLS command establishes a secure communication session with email server, similarly to -SSL. The main difference between SSL and STARTTLS is that SSL establishes secure communication channel when connecting to SMTP server, while STARTTLS gets the information whether encrypted session is compatible with server and the secured session is established right before transferring any sensitive data, such as authentication or message text itself if no authentication is required.

Command syntax:
  • febootimail -STARTTLS

The default port for STARTTLS connection is 25 which is also used unless specified otherwise. Usually, but not necessarily, -STARTTLS switch will have to be used with STARTTLS enabled email SMTP server authentication (-AUTH, -USER and -PASS).

C:\>febootimail -SERVER smtp.mailserver.com -FROM john@sender.com -TO jack@recipients.com -USER john -PASS 3kr5$DrB -MSG email sent through STARTTLS enabled SMTP server -STARTTLS

Essentially, STARTTLS is very similar to SSL in general aspects. Some email clients uses SSL instead of STARTTLS. Indeed, in fact only some implementation details differ.

Example: send Gmail email from DOS using STARTTLS. Just replace YourEmail@gmail.com with valid Gmail address:

C:\>febootimail -SUBJ "Gmail and STARTTLS" -SERVER smtp.gmail.com -STARTTLS -AUTH PLAIN -USER YourEmail@gmail.com -PASS *********** -FROM YourEmail@gmail.com -TO email@example.com -TEXT "This email is sent from DOS using Gmail's server. It is easy and secure!"

OpenSSL credit: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/). This product includes cryptographic software written by Eric Young (eay@cryptsoft.com).

Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.

Copyright © 2001-2013 Febooti Software. All rights reserved. Last updated: November 14, 2009