Closed sgnix closed 13 years ago
Thanks naturalist. I am fine with adding this feature. My concern is that alnewkirk has been wanting to refactor this entire plugin to use his Emailesque module (http://p3rl.org/Emailesque). Lets include him in this discussion and see what he thinks.
I think this is a great idea, i will add this to Emailesque and then push both Emailesque and Dancer::Plugin::Email to CPAN once properly tested.
Al, before you push the refactored Dancer::Plugin::Email to cpan, please let me test it on my box first. Last time I tried Emailesque, it didn't work. Also, it would be great if naturalist could test it as well.
I'll test alright. I'm not sure why we're switching to Emailesque, though. It still uses Email::Stuff. Why do we need another wrapper?
The purpose of Emailesque is to be able to use the nice interface Dancer::Plugin::Email provides inside of non-Dancer applications. I'm going to close this issue now. If you would like this patch to go in D::P::Email, send it to me as a pull request. Al and I can figure out how to merge this project with Emailesque when the time comes.
To make the developing of your app easier, let's add a new email driver - 'logfile'. What it does is it dumps the entire email body in the log file. This way you can set this in your developement.yml and monitor the emails you send, w/o actually sending them. I've already added this to my local copy of the plugin. It would be great if you think it's a good idea and add it to the distribution: