I'm using java mail to sent mail from my applcation, this is working for normal mail address those having alphanumberic in email part.
我正在使用java邮件从我的applcation发送邮件,这适用于普通邮件地址,在电子邮件部分有alphanumberic。
But if i try to sent mail to email addresses like in format
但是如果我尝试将邮件发送到格式化的电子邮件地址
email+@domain.com
At this time mail is sending to email@domain.com
,not to email+@domain.com
.
此时邮件发送至email@domain.com,而不是发送至email+@domain.com。
Update: Is there any way i can override the special meaning of + character(by pre-processing) in mail servers( like encoding ..)
更新:有没有办法可以覆盖邮件服务器中+字符的特殊含义(通过预处理)(比如编码..)
1 个解决方案
#1
0
The interpretation of the local part of an email address is up to the receiving mail server. If the receiving server treats "email" and "email+" as meaning the same mailbox, there is nothing you ... or your local javamail library ... can do about that.
电子邮件地址的本地部分的解释取决于接收邮件服务器。如果接收服务器将“email”和“email +”视为同一个邮箱,则没有任何内容......或者您的本地javamail库...可以做到这一点。
Is there any way i can override the special meaning of + character in mail servers( like encoding ..)
有什么办法可以覆盖邮件服务器中+字符的特殊含义(比如编码......)
No standard encoding or escaping mechanism is mentioned in the Wikipedia article on email addresses, and I can't recall one. (But feel free to research this yourself by reading the relevant RFCs.)
*关于电子邮件地址的文章中没有提到标准编码或转义机制,我不记得了。 (但请随意通过阅读相关的RFC来自行研究。)
If there is such mechanism, it would be mail server specific. Consult the relevant mail server documentation.
如果有这样的机制,它将是邮件服务器特定的。请参阅相关的邮件服务器文档。
#1
0
The interpretation of the local part of an email address is up to the receiving mail server. If the receiving server treats "email" and "email+" as meaning the same mailbox, there is nothing you ... or your local javamail library ... can do about that.
电子邮件地址的本地部分的解释取决于接收邮件服务器。如果接收服务器将“email”和“email +”视为同一个邮箱,则没有任何内容......或者您的本地javamail库...可以做到这一点。
Is there any way i can override the special meaning of + character in mail servers( like encoding ..)
有什么办法可以覆盖邮件服务器中+字符的特殊含义(比如编码......)
No standard encoding or escaping mechanism is mentioned in the Wikipedia article on email addresses, and I can't recall one. (But feel free to research this yourself by reading the relevant RFCs.)
*关于电子邮件地址的文章中没有提到标准编码或转义机制,我不记得了。 (但请随意通过阅读相关的RFC来自行研究。)
If there is such mechanism, it would be mail server specific. Consult the relevant mail server documentation.
如果有这样的机制,它将是邮件服务器特定的。请参阅相关的邮件服务器文档。