前回 http://d.hatena.ne.jp/BeForU/20040705 の改造。 SubjectをBase64でエンコードしてみるVersion。 FreeBSD + Ruby1.8.1 だとencode64でバグがある。→ http://www.daifukuya.com/kagemai/guest.rbx?project=kagemai&action=view_report&id=210 encode64→Base64.encode64にしたら動いた。他のOSは知らない。 #!/usr/local/bin/ruby # # Rubyからsendmailを使うデモ # SENDMAIL = "/usr/libexec/sendmail/sendmail" # sendmailのパス def sendmail sm_from, sm_to, sm_cc, sm_bcc, sm_s