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 /path/to/mails then FileDelivery will create the directory 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.
settings | [RW] |