Sha256: a2df187999af1d82b210a52a7b9ca956c6fac4e8f8a159342bda18e1c3008b60

Contents?: true

Size: 540 Bytes

Versions: 3

Compression:

Stored size: 540 Bytes

Contents

# -*- coding: utf-8 -*-
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

3 entries across 3 versions & 1 rubygems

Version Path
keystone-0.0.32 example/sendmail.rb
keystone-0.0.31 example/sendmail.rb
keystone-0.0.30 example/sendmail.rb