sj26/mailcatcher — pull request #53 by hundredwatt (2012-09-09 18:14:09+00:00)
Title: Message Delivery

This pull request adds a "Deliver" button to the web interface next to the "Download" button.

In the backend, there is now a DeliveryService class that is initialized with a message hash and responds to #deliver!. The current implementation uses a basic Net::SMTP setup for delivery. SMTP options are provided on the command line with defaults setup for GMail. So if you are using GMail, the minimum necessary configuration is:

mailcatcher --delivery-user-name YOURADDRESS@gmail.com --delivery-password YOURPASS

There is also a '--delivery-recipient' option which overwrites the recipient field on all delivered messages. This allows you to specify an email address that you would like all messages to be delivered to.