2012-08-13から1日間の記事一覧

Ruby1.9で簡単にメールを送信する

前提として、sendmailコマンドが使えて、メールの配送の設定は終わっていること #!/usr/bin/env ruby # vim:fileencoding=UTF-8 # require 'rubygems' require 'mail' mail=Mail.new do from 'from@example.com' to 'to@example.com' subject 'test' body 't…