Open GoogleCodeExporter opened 9 years ago
I cannot reproduce this, configured my own Postfix server to not have
authentication
available and testing using the :none type sends the message.
More info:
Server output:
edmundo@toshibau305:~$ telnet 192.168.0.6 25
Trying 192.168.0.6...
Connected to 192.168.0.6.
Escape character is '^]'.
220 internetgw.intranet.minharede.lan ESMTP Postfix (Debian/GNU)
ehlo localhost
250-internetgw.intranet.minharede.lan
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250 8BITMIME
...
Test used:
def test_receipt_not_using_authentication
ActionMailer::Base.delivery_method = :smtp
prefs = {
"mail_host" => "192.168.0.6",
"mail_port" => "25",
"mail_auth_type" => "none",
"mail_username" => "usuario1@minharede.lan"
}
assert Preference.save_settings(prefs)
assert Preference.init_mail_settings
an_order_user = order_users(:santa)
assert an_order_user.update_attributes(:email_address => 'usuario2@minharede.lan')
# Get any order.
an_order = orders(:santa_next_christmas_order)
an_order.deliver_receipt
end
Original comment by edmundo...@gmail.com
on 21 Aug 2008 at 11:25
obs.: Tested on trunk, commenting out the requirement of the smtp_tls unit in
the
preference model.
Original comment by edmundo...@gmail.com
on 21 Aug 2008 at 11:28
Original issue reported on code.google.com by
afiedl...@gmail.com
on 20 Aug 2008 at 5:43