在哪里可以找到所有可用的 Java 邮件属性?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16594855/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-16 12:20:52  来源:igfitidea点击:

Where to find all available Java mail properties?

javaemailjakarta-ee

提问by LuckyLuke

Where do I find a list of all available Java mail properties that I can pass to the Session object? I am only able to find basic properties in the API. Browsing blogs to find some more properties isn't good. There must be some list somewhere?

在哪里可以找到可以传递给 Session 对象的所有可用 Java 邮件属性的列表?我只能在 API 中找到基本属性。浏览博客以查找更多属性并不好。某处一定有一些清单吗?

采纳答案by mszalbach

In the api is a reference to the properties for the specific sun protocol providers. Not sure if you were looking for these:

在 api 中是对特定 sun 协议提供程序的属性的引用。不确定您是否正在寻找这些:

These are also set on the session object but you use them on your own risk since in other mail implementations they are maybe not supported or they change in the future.

这些也是在会话对象上设置的,但使用它们的风险由您自己承担,因为在其他邮件实现中,它们可能不受支持或将来会发生变化。