电子邮箱
public interface IEmail
com.android.tradefed.util.IEmail |
发送电子邮件的接口。
概括
嵌套类 | |
---|---|
class | IEmail.Message 电子邮件数据的容器。 |
公共方法 | |
---|---|
abstract void | send ( IEmail.Message msg) 发送 |
公共方法
发送
public abstract void send (IEmail.Message msg)
发送Message
方法。验证Message
的收件人、主题和正文字段不为空,但除空检查外不进行任何验证。请注意,在此阶段无法检测到任何 SMTP 级别的错误。由于电子邮件的异步特性,它们通常会报告给消息的信封发件人。在这种情况下,信封发件人通常会收到来自 MAILER-DAEMON 的电子邮件,其中包含错误的详细信息。
参数 | |
---|---|
msg | IEmail.Message :尝试发送的IEmail.Message |
投掷 | |
---|---|
IllegalArgumentException | 如果msg 的任何 to、subject 或 body 字段为空 |
| 如果以可同步检测的方式发送电子邮件失败 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-07-19。
[{
"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":"其他"
}]