Issue 134: No great way to test emails
Status:  Assigned
Owner:
Project Member Reported by subim...@gmail.com, Sep 19, 2008
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 20, 2008
#1 edmundo...@gmail.com
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
Sep 21, 2008
Project Member #2 subim...@gmail.com
Edmundo - a test from the user interface. So that store owners can ensure that their mail settings are working 
properly.
Sep 12, 2009
Project Member #3 rogerdp...@gmail.com
needed one of these, so commited one, revision 180.