No commit activity in last 3 years
No release in over 3 years
Easily attach many files to Gmail messages. If the files total more than 25 MB, they will be sorted alphabetically and distributed amongst multiple new messages, which you can then send.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
>= 0

Runtime

>= 0.4.0
 Project Readme

GmailAttachMany

Easily attach many files to Gmail messages. If the files total more than 25 MB, they will be sorted alphabetically and distributed amongst multiple new messages, which you can then send.

Installation

Add this line to your application's Gemfile:

gem 'gmail_attach_many'

And then execute:

$ bundle

Or install it yourself as:

$ gem install gmail_attach_many

Usage

To use:

gmail = Gmail.connect('username', 'password')
emailArray = gmail.attach_many('./images/*.jpg')
emailArray.messages_to = 'recipient@domain.com' 
emailArray.messages_subject = 'The Subject Line Goes Here' 
#number the messages, i.e. "Email 1/3", "Email 2/3", "Email 3/3"
emailArray.messages_number 
# OR, you can do this instead for the same effect
emailArray.messages_subject_and_number 'The Subject Line Goes Here'

Contributing

  1. Fork it ( https://github.com/[my-github-username]/gmail_attach_many/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request