Skip to content

Instantly share code, notes, and snippets.

Arun Avanathan avanathan

View GitHub Profile
@avanathan
avanathan / SendEmailWithSTARTTLS-Ruby
Last active Jan 29, 2019
Ruby: Send Email with STARTTLS
View SendEmailWithSTARTTLS-Ruby
msgstr = <<END_OF_MESSAGE
From: Your Name <from@email.domain>
To: Destination Address <to@email.domain>
Subject: test message
Date: Sat, 19 Jan 2019 16:26:43 +0900
Message-Id: blah123
This is a test message. Now I can use your email address to send emails..yay!!!
END_OF_MESSAGE
@avanathan
avanathan / javahome.txt
Last active Jul 28, 2018
Setting JAVA HOME
View javahome.txt
export JAVA_HOME="$(dirname $(dirname $(realpath $(which javac))))"
You can’t perform that action at this time.