require ‘net/smtp’
message = <<MESSAGE_END
From: Private P. [email protected]
To: A Test User [email protected]
MIME-Version: 1.0
Content-type: text/html
Subject: SMTP e-mail test
This is an e-mail message to be sent in HTML format
This is HTML message.
This is headline.
MESSAGE_ENDNet::SMTP.start(‘localhost’) do |smtp|
smtp.send_message message, ‘[email protected]’,
‘[email protected]’
end