ruby-qmail

The RubyQmail Plugin provides support for the Qmail MTA and helpers for creating data-aware applications While initially intended to operate in a large-scale Qmail environment, some of these features may be useful for applications on other platforms. In fact, this plugin is not required if you are using Qmail because ActionMailer's sendmail and smtp configurations will work for simple Qmail installations.

NOTE: This is still in an early stage of development, but has been tested to insert email into the qmail queue via the qmail-queue and QMQP protocols.

Using ruby-qmail

Ruby Qmail takes a message in 3 parts

Call the insert command

RubyQmail::Queue.insert "bounces-123@example.com", ['recipient@email.com',...], message_file

The call returns true if the message was inserted. If you want more control and information, you can run it as:

rqq = RubyQmail::Queue.new 
sucess? = rqq.qmail_queue "bounces-123@example.com", ['recipient@email.com',...], message_file
puts rqq.response   #=> Response message

You can also specify a set of options on the invocation line as :name=>value parameters after the message file.

RubyQmail::Queue.insert "bounces-123@example.com", recipient_file, message_file, :method=>:qmqp

Options can be

Feature Path

Note on Patches/Pull Requests

Copyright

Copyright (c) 2009 Allen Fair. See LICENSE for details.

[Validate]

Generated with the Darkfish Rdoc Generator 2.