/* * JCatalog Project */ package com.hexiang.utils; import java.util.List; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.Properties; import javax.mail.Session; import javax.mail.Transport; import javax.mail.Message; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.hexiang.exception.CatalogException; /** * Utility class to send email. * * @author hexiang */ public class EmailUtil { //the logger for this class private static Log logger = LogFactory.getLog("com.hexiang.util.EmailUtil"); /** * Send email to a single recipient. * * @param smtpHost the SMTP email server address * @param senderAddress the sender email address * @param senderName the sender name * @param receiverAddress the recipient email address * @param sub the subject of the email * @param msg the message content of the email */ public static void sendEmail(String smtpHost, String senderAddress, String senderName, String receiverAddress, String sub, String msg) throws CatalogException { List recipients = new ArrayList(); recipients.add(receiverAddress); sendEmail(smtpHost, senderAddress, senderName, recipients, sub, msg); } /** * Send email to a list of recipients. * * @param smtpHost the SMTP email server address * @param senderAddress the sender email address * @param senderName the sender name * @param recipients a list of receipients email addresses * @param sub the subject of the email * @param msg the message content of the email */ public static void sendEmail(String smtpHost, String senderAddress, String senderName, List recipients, String sub, String msg) throws CatalogException { if (smtpHost == null) { String errMsg = "Could not send email: smtp host address is null"; logger.error(e
1
email邮件服务器一键安装, 支持linux centos7、包含邮件管理rainloop及账号管理web
2021-05-16 16:41:36 318B email centos
1
c# Imap收信组件,UTF-8版本,完美支持中文不乱码 可以分类收取也可以搜索收取,还能标记为已读邮件 支持ssl和gmail,这是S22.imap,各位可以自行搜索 只不过自行改了编码utf-8了,搜索找到的都是不可用的
2021-05-15 10:58:53 129KB C# imap email 邮件
1
vc邮件发送程序.zip
2021-03-28 12:05:35 48KB 邮件 email
自己开发的JAVA Web Email邮件系统
2021-02-21 19:08:52 63KB JAVA Email 邮件客户端
1
linux shell 发送email 邮件(shell脚本源码,含三种方法)
2019-12-21 21:11:11 10KB linux shell 发送email 邮件
1
邮件加密系统,使用DES加密,RSA加密DES密钥,可以进行邮件发送,加密,解密,接收等
2019-12-21 21:03:32 7.04MB 邮件加密
1
java中email邮件发送接受和处理excel文件(xls)实例 实现2种功能的例子。值得一看
2019-12-21 19:53:48 1.21MB java email excel文件 邮件
1
基于smtp协议的邮件发送程序,支持发送、抄送,支持附件,下载包中含lib库源码及demo源码。编译环境VS2013。
2019-12-21 19:50:03 14KB smtp email 邮件
1