ruby用 3行代码发送 gmail

2015-03-14 0 420
ruby用 3行代码发送 gmail
      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))

遇见资源网 ruby ruby用 3行代码发送 gmail http://www.ox520.com/16267.html

常见问题

相关文章

发表评论
暂无评论
官方客服团队

为您解决烦忧 - 24小时在线 专业服务