清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
g = GmailSender.new('xxxxx@gmail.com', 'password')
#next unless File.exist? fn
#g.attach(fn) # you can attach any number of files, but there are limits for total attachments size
ti = now.strftime("%y-%m-%d")
p g.send(:to => t, :subject => ti, :content => File.read(fn))