Sha256: daafb51bf8625944a6563f4769e391db5ee951e9e3725ba3c441ac3924e743b4
Contents?: true
Size: 516 Bytes
Versions: 2
Compression:
Stored size: 516 Bytes
Contents
require 'rubygems' require 'keystone' require 'pit' ENV["EDITOR"] = "vi" unless ENV.key?("EDITOR") config = Pit.get("keystone_test", :require => { "smtp_addr" => "smtp_server_address", "mailto" => "mailto", "mailfrom" => "mailfrom" }) @os = Keystone::Os.get() Keystone::Mail::Send.send( config["mailfrom"], config["mailto"].split(","), "件名でおま", "本文で小間\nfrom #{@os.hostname}(#{@os.ip_address.join(" , ")})", {:smtp_addr=>config["smtp_addr"],:retry_cnt=>3})
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
kanamei-keystone-0.0.27 | example/sendmail.rb |
keystone-0.0.29 | example/sendmail.rb |