发送邮件-自定义发件账户
接口文档 https://wenku.my7c.com/article/131834587734451200
try {
File file = new File(filepath);
StreamReader streamReader = new StreamReader(file.Filepath);
Dictionary<string, Stream> dic = new Dictionary<string, Stream>
{ { "路径", streamReader.BaseStream//字符流附件 } };
//收件人列表
List<string> getuser = new List<string>(new[] { "收件人邮箱地址" });
MailUtils.Sendmail("邮箱地址", "发件人昵称", 收件人列表 , "标题", "正文", "邮箱服务器", 端口, 是否启用SSL(true or false), dic, "邮箱地址", "邮箱密码");
}catch{
View.ShowErrMessage("邮件发送失败");
}
发送邮件-自定义发件账户
接口文档 https://wenku.my7c.com/article/131834587734451200自定义发件账户try { File file = new File(filepath); StreamRe...
点击下载文档
上一篇:发生邮件二下一篇:DynamicObject的应用
本文2024-09-16 18:30:34发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-22600.html
您需要登录后才可以发表评论, 登录登录 或者 注册
最新文档
热门文章