Kotlin can be used as script. I tried to create simple server with Kotlin script, like the server introduced in Python Light Server.Continue reading Kotlin JVM: Simple Server of 1 Script File
I established a simple server and ask colleagues to test commands, on AWS EC2.Continue reading Python: Establish Light Server to Share Command
Here is the script of python for confirm sending email, which was used when I was establishing mail server on Amazon AWS EC2, on python 2.7.9.
sending test mail
from email.MIMEText import MIMEText
from email.Utils import formatdate
from_addr = 'firstname.lastname@example.org'
to_addr = 'email@example.com'
msg = MIMEText("test")
msg['Subject'] = 'subject'
msg['From'] = from_addr
msg['To'] = to_addr
msg['Date'] = formatdate()
s = smtplib.SMTP()
# Set server and port. Localhost and port 25 are set as default.
# s.connect([host[, port]])
# Login if the server restrict user of sending mail
# s.login('user_name', 'password')
s.sendmail(from_addr, [to_addr], msg.as_string())