mailcatcher icon indicating copy to clipboard operation
mailcatcher copied to clipboard

Message Delivery

Open hundredwatt opened this issue 12 years ago • 6 comments

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 [email protected] --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.

hundredwatt avatar Sep 09 '12 18:09 hundredwatt

This is in response to sj26/mailcatcher#4

hundredwatt avatar Sep 09 '12 18:09 hundredwatt

Great idea, not sure how comfortable I am with the gmail integration. I'd be more inclined to just act like a first-class SMTP server, however that raises problems via ISPs. Also want the deliveree's address to be changeable in the web interface.

sj26 avatar Oct 29 '12 03:10 sj26

The current setup can take in any SMTP configuration. I chose to add GMail as the default SMTP configuration figuring it was relatively common and easiest to setup.

For the deliveree's address, what use case do you have in mind for wanting to change their address via the interface?

hundredwatt avatar Nov 10 '12 15:11 hundredwatt

+1, great idea.

sepehr avatar Jan 02 '14 18:01 sepehr

It would be great to have this merged.

bogdal avatar Jan 07 '16 11:01 bogdal

Great idea. When will it be merged?

jehon avatar Jul 19 '16 04:07 jehon