Sha256: 195fab038386df2896e95985b59ac37fec8c1383cbc873cbb2eef763629ef22b
Contents?: true
Size: 543 Bytes
Versions: 2
Compression:
Stored size: 543 Bytes
Contents
# -*- coding: utf-8 -*- require 'rubygems' require 'mail' login = 'wbzyl' password = 'alamakota' Mail.defaults do smtp 'inf.ug.edu.pl', 25 do user login pass password end end mail = Mail.deliver do from 'wbzyl@inf.ug.edu.pl' to 'matwb@ug.edu.pl' content_type 'text/plain; charset=UTF-8' subject 'This is a test email: 30' body File.read('body.txt') # add_file 'motylek.jpeg' # albo tak # add_file :filename => 'motylek.jpeg', # :data => File.read('motylek.jpeg'), # :content_transfer_encoding => 'base64' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nosql-tutorial-0.1.1 | lib/public/doc/mail/mail-01.rb |
nosql-tutorial-0.1.0 | lib/public/doc/mail/mail-01.rb |