Class Mail::FileDelivery
In: lib/mail/network/delivery_methods/file_delivery.rb
Parent: Object

FileDelivery class delivers emails into multiple files based on the destination address. Each file is appended to if it already exists.

So if you have an email going to fred@test, bob@test, joe@anothertest, and you set your location path to ~/tmp/mails then FileDelivery will create ~/tmp/mails if it does not exist, and put one copy of the email in three files, called “fred@test”, “bob@test” and “joe@anothertest“

Make sure the path you specify with :location is writable by the Ruby process running Mail.

Methods

deliver!   new  

Attributes

settings  [RW] 

Public Class methods

Public Instance methods

[Validate]