RubyでGmailやその他Webメールサービスを扱う
rubyonrails-talk MLにGMail APIを使いたいという話題があったので覚え書き。(最初はRubyライブラリの紹介、後にRailsで扱う方法をこの記事の最後に追記した。)
Ruby on Rails Talk:GMail API
このライブラリがお進めされていた。-> RubyForge: gmailutils とそのドキュメント
日本語が通るのかは不明。
その他のメールについてはこちら。(つまり検索すれば良いって事だ・・・)
http://rubyforge.org/search/?type_of_search=soft&words=hotmail&Search…;
http://rubyforge.org/search/?type_of_search=soft&words=yahoo&Search=S…;
http://rubyforge.org/search/?type_of_search=soft&words=msn&Search=Search
http://rubyforge.org/search/?type_of_search=soft&words=aol&Search=Search
ついでにコンタクトリストをインポートするツール、というかサイトも紹介されていた。http://www.getmycontacts.com/
追記)更にopenssl&Net::SMTPを使った方法も紹介されていた。Rails用にはこっちの方が良さそう。以下がそのスレッドとBlog記事。
Ruby on Rails Talk: giving back… gmail
ここで紹介されているのがこのBlog記事 -> How to send ActionMailer mails to GMail.com
注)これらは全て未検証