-
-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support international email addresses #166
Comments
Thanks for the bug report. This is a tough one, because the email validation library used doesn't support special symbols. bbottema/email-rfc2822-validator#9 I'm not sure how to proceed here. |
If there was a global control for validation of email addresses, as per #167, then this would not be an issue. I could use the Java Mail API directly to perform email address validation (as it has supported I18N since Java 1.6, I believe) and then continue using the SimpleJavaMail API for the remaining work. See page 156 in https://javaee.github.io/javamail/docs/JavaMail-1.6.pdf for details. |
Nice, in al my Java Mail adventures I've not come across Java Mail's SAD! I'll study it carefully. To get back to the issue, you can turn off email validation so only the injection checks remain: currentMailerBuilder
.clearEmailAddressCriteria()
(..) Perhaps I should make |
Fixing issue #167 will make this issue no longer relevant. Closing. |
Background
Add support for internationalized email addresses. See:
Replicate
Also, try these:
Expected Results
Email is sent.
Actual Results
Workaround
Tried to disable validation as follows:
This failed because the API does not permit setting the criteria to
null
, which is the entering condition for thevalidate
method:https://github.com/bbottema/simple-java-mail/blob/master/src/main/java/org/simplejavamail/mailer/Mailer.java#L287
Since
MailerGenericBuilder
assigns the email address criteria during construction and the methods to assign the validation enum set are tagged@Nonnull
, it seems there is no way to avoid triggering validation (with or without an enum set).This appears to be a minor oversight.
The text was updated successfully, but these errors were encountered: