新浦京娱乐场官网specify port number

2019-06-19 20:05栏目:技术创新

require 'net/smtp'

message = <<MESSAGE_END
From: Private Person <me@privacy.net>
To: Author of Beginning Ruby <test@rubyinside.com>
Subject: SMTP e-mail test

This is a test e-mail message.
MESSAGE_END

Net::SMTP.start('mail.your-domain.com', 25, 'localhost', 'username', 'password', :plain)
 do |smtp|
  smtp.send_message message, 'me@privacy.net', 'test@r.com'
end

版权声明:本文由新浦京娱乐站_新浦京娱乐场官网_新浦京娱乐发布于技术创新,转载请注明出处:新浦京娱乐场官网specify port number