使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
电子邮件
public class Email
extends Object
implements IEmail
java.lang.Object |
↳ | com.android.tradefed.util.Email |
发送电子邮件的助手类。请注意,此类不是平台独立的。它可能会在 Windows 上失败,也可能在 Mac OS X 上失败。如果mailer
常量指向的二进制文件不存在,它将在任何机器上失败。
概括
公共构造函数
公共方法
发送
public void send (IEmail.Message msg)
发送Message
方法。验证Message
的收件人、主题和正文字段不为空,但不进行空检查以外的验证。请注意,在此阶段无法检测到任何 SMTP 级别的错误。由于电子邮件的异步性质,它们通常会报告给邮件的信封发件人。在这种情况下,信封发件人通常会收到一封来自 MAILER-DAEMON 的电子邮件,其中包含错误的详细信息。
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-03-30。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]