Successfully built a local server and a project running on it that sent me an e-mail under certain conditions. Worked great, and I went to clone the SD card for a second Raspberry Pi. Cloning utility corrupted the card and I had to rebuild from scratch. Thought I had done everything correctly:
mail.properties file (in same file area as server (server-0.28.4-java8.jar), with 777 properties):
mail.smtp.auth=true
mail.smtp.starttls.enable=true
mail.smtp.host=smtp.gmail.com
mail.smtp.port=587
mail.smtp.username=strauch1@gmail.com
mail.smtp.password=XXXXXXXX
Log file:
14:14:23.169 ERROR- Error sending email from hardware. From user strauch1@gmail.com, to : strauch1@gmail.com. Reason : Couldn’t connect to host, port: smtp.gmail.com, 587; timeout -1
14:15:36.890 INFO - strauch1@gmail.com Blynk-app joined.
14:15:38.962 INFO - strauch1@gmail.com Blynk-app joined.
14:15:45.440 INFO - strauch1@gmail.com Blynk-app joined.
14:16:08.965 WARN - User not logged. /192.168.1.105:53175. Closing.
14:16:09.895 INFO - strauch1@gmail.com Blynk-app joined.
14:16:14.903 INFO - strauch1@gmail.com Blynk-app joined.
14:17:02.788 INFO - strauch1@gmail.com Blynk-app joined.
14:18:02.515 ERROR- Error sending email from hardware. From user strauch1@gmail.com, to : 925XXXXXXX@vtext.com. Reason : Couldn’t connect to host, port: smtp.gmail.com, 587; timeout -1
I thought I covered everything, but it appears I must have missed a crucial step somewhere and I am baffled.