类的使用
com.gdxsoft.easyweb.utils.Mail.Addr
使用Addr的程序包
-
com.gdxsoft.easyweb.utils.Mail中Addr的使用
修饰符和类型方法说明MailDecode.getFrom()获取发件人地址SendMail.getFrom()发件人SendMail.getSender()获取发件人SendMail.getSingleTo()单一收件人,TO为多人,实际发送此人,用于跟踪返回变量类型为Addr的类型的com.gdxsoft.easyweb.utils.Mail中的方法修饰符和类型方法说明MailDecode.getAllRecipients()Get all recipients (to, cc, bcc)MailDecode.getBcc()获取密送人列表SendMail.getBccs()密送mapMailDecode.getCc()获取抄送列表SendMail.getCcs()抄送mapMailDecode.getMailAddress(String type) 获得邮件的收件人,抄送,和密送的地址和姓名,
根据所传递的参数的不同
"to"
"cc"
"bcc"
"all" -- All recipientsSendMail.getReplayTos()邮件的回复头MailDecode.getTo()获取收件人列表SendMail.getTos()收件人map参数类型为Addr的com.gdxsoft.easyweb.utils.Mail中的方法修饰符和类型方法说明添加密送添加抄送人SendMail.addReplyTo(Addr replyTo) 添加回复人添加收件人javax.mail.internet.InternetAddressSendMail.getAddress(Addr addr) 转换为 InternetAddress格式设置发件人设置发件人类型变量类型为Addr的com.gdxsoft.easyweb.utils.Mail中的方法参数修饰符和类型方法说明static SmtpCfgSmtpCfgs.getSmtpCfg(String fromEmail, List<Addr> recipients) Get a SMTP configuration from sender or recipientsSmtpCfgs.getSmtpCfgByToDomain(List<Addr> al) Get all SMTP configurations that match the recipient domain listSmtpCfgs.getSmtpCfgByToEmail(List<Addr> al) Get all SMTP configurations that match the recipient list