gmail
https://github.com/gmailgem/gmail
Ruby
A Rubyesque interface to Gmail, with all the tools you'll need.
Gmail::Client::Base#deliver
Compose (optionaly) and send given email.
==== Examples
gmail.deliver do
to "[email protected]"
subject "Hello friend!"
body "Hi! How are you?"
end
... or with already created message:
mail = Mail.new { ... }
gmail.deliver(mail)
mail = gmail.compose { ... }
gmail.deliver(mail)Edit
git clone [email protected]:gmailgem/gmail.git
cd gmail
open lib/gmail/client/base.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Gmail--Client--Base-deliver-for-pr
# Commit to gitgit add lib/gmail/client/base.rbgit commit -m "better docs for Gmail::Client::Base#deliver"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Gmail--Client--Base-deliver-for-pr
hub pull-request
# Celebrate!