Created
November 17, 2010 15:36
-
-
Save blasterpal/703520 to your computer and use it in GitHub Desktop.
Plain SMTP Email-Relay Test script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'net/smtp' | |
message = <<MESSAGE_END | |
From: Hank Beaver <[email protected]> | |
To: Hank Beaver <[email protected]> | |
Subject: SMTP e-mail test | |
This is a test e-mail message. | |
MESSAGE_END | |
Net::SMTP.start('mxm-mail.mxmsite.com') do |smtp| | |
smtp.send_message message, '[email protected]', | |
'[email protected]' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment