发送邮件-自定义发件账户

栏目:云星空知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

发送邮件-自定义发件账户

 

接口文档 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...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息