| Issue 134: | No great way to test emails | |
| 2 people starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Set up a new store 2. How do you know email notifications are working properly? What is the expected output? What do you see instead? Perhaps a nice UI should be offered to send a test mail and debug what's going on.
Sep 21, 2008
Edmundo - a test from the user interface. So that store owners can ensure that their mail settings are working properly.
Sep 12, 2009
needed one of these, so commited one, revision 180. |
Doing a test? This is the way I did at least. def test_receipt_not_using_authentication ActionMailer::Base.delivery_method = :smtp prefs = { "mail_host" => "xxx.xxx.xxx.xxx", "mail_port" => "25", "mail_auth_type" => "none", "mail_username" => "system@domain", "use_smtp_tls_patch" => "0" } assert Preference.save_settings(prefs) assert Preference.init_mail_settings an_order_user = order_users(:santa) assert an_order_user.update_attributes(:email_address => 'customer@domain') # Get any order. an_order = orders(:santa_next_christmas_order) an_order.deliver_receipt end