about bulkmail
Bulkmail is a simple bulk mailing utility in Ruby. It takes a content file and a recipients file, and sends the content to each address listed in the recipients file. I wrote it to be as simple as possible, and as a basic alternative to commercial bulk-mailers. The free ones suck.
Usage
From the Command Line
bulkmail <options>
where the options are:
[--recipients, -r] recipients file name
[--content, -c] content file name
[--subject, -s] subject
[--from, -f] from
[--host, -h] smtp hostname (if none is specified localhost is presumed)
[--user, -u] user name (if authentication is needed)
[--password, -p] password (if authentication is needed)
[--auth, -a] authentication type
[--mime, -m] message mime type.
You can also include headers in the content file, provided they are followed by a blank line. For example:
Subject: Baroque Concert this Thursday
Hello Baroque Lovers,
A special concert is about to take place this Thursday at...
From Ruby
BulkMail.send(options)
Valid options are:
[:recipients_file] recipients file name
[:content_file] content file name
[:subject] subject
[:from] from
[:additional_headers] additional headers
You can set server settings in the same fashion as ActionMailer by using the convenience method:
BulkMail.server_settings[:address] = 'mail.example.com'