-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Email addresses that contain non-ASCII characters no longer cause an error if the server does not support SMTPUTF8. This is because even if the server does not support SMTPUTF8, it may not cause an error for email addresses with non-ASCII characters. The server should decide whether to cause an error or not.
- Loading branch information
Showing
2 changed files
with
3 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -547,9 +547,8 @@ def test_start_instance_invalid_number_of_arguments | |
def test_send_smtputf_sender_without_server | ||
server = FakeServer.start(smtputf8: false) | ||
smtp = Net::SMTP.start 'localhost', server.port | ||
assert_raise(Net::SMTPUTF8RequiredError) do | ||
smtp.send_message('message', 'rené@example.com') | ||
end | ||
smtp.send_message('message', 'rené@example.com', '[email protected]') | ||
assert server.commands.include? "MAIL FROM:<rené@example.com>\r\n" | ||
end | ||
|
||
def test_send_smtputf8_sender | ||
|