This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.document | Thu May 21 01:18:32 -0700 2009 | |
| |
.gitignore | Thu May 21 01:18:32 -0700 2009 | |
| |
LICENSE | Thu May 21 01:18:32 -0700 2009 | |
| |
README.rdoc | Sun Nov 01 18:55:50 -0800 2009 | |
| |
Rakefile | Thu May 21 01:18:32 -0700 2009 | |
| |
VERSION | Sun Nov 01 18:56:29 -0800 2009 | |
| |
bin/ | Sun Nov 01 18:55:50 -0800 2009 | |
| |
gmail_sender.gemspec | Sun Nov 01 18:58:10 -0800 2009 | |
| |
lib/ | Sun Nov 01 18:55:50 -0800 2009 | |
| |
test/ | Sun Nov 01 18:55:50 -0800 2009 |
README.rdoc
gmail_sender
A simple gem to send email through gmail
require 'rubygems'
require 'gmail_sender'
g = GmailSender.new("gmail_account_user_name", "gmail_account_password")
g.send("someone@domain.com", "The subject", "The mail body")
Command line usage
You can also use gmail_sender from the command line. First you need to create ~/.gmail with this content (YAML):
receiver_email: default_receiver@gmail.com sender_user: gmail_account_user_name sender_password: gmail_account_password
Is advisable to use a different sender account than your main email address so that it’s not so bad if someone reads your configuration file and gets your password.
Examples
To send your directory list to the default receiver:
ls | gmail
You can specify some parameters like in this example which doesn’t use pipes:
gmail -t somebody@gmail.com -s "This is the subject" -c "This is the email content"
Requirements
tlsmail if running Ruby 1.8.6
Major contributors
- Daniel Cadenas - Maintainer
- Felipe Coury







