WinServer-SMTP服务

摘要

SMTP服务是用来发送邮件的,常用于代码中发送邮件,不能接收。本章介绍SMTP服务的安装,配置。

 

安装

 

 Install-WindowsFeature  SMTP-SERVER

WinServer-SMTP服务

 

配置

 注意打开IIS6.0管理器

WinServer-SMTP服务

 

WinServer-SMTP服务

WinServer-SMTP服务

 

 

 取消链接数限制,启用日志记录,注意要选择rollover不然日志会一直增大。

 WinServer-SMTP服务

WinServer-SMTP服务

 

Access中

 WinServer-SMTP服务

WinServer-SMTP服务

WinServer-SMTP服务

 

WinServer-SMTP服务

 

Message取消限制

 

WinServer-SMTP服务

 

 

最后要在域里的邮件服务器上开通权限,

脚本测试发送邮件

Send-MailMessage -SMTPServer localhost -To [email protected] -From [email protected] -Subject "This is a test email" -Body "new smtp serice test "

 

如果代码里没有报错发送成功,而邮箱没有收到,可能是被放到了垃圾邮件中。

 

posted @ 2019-06-12 12:00 JinweiChang 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2022-01-24
  • 2021-12-09
  • 2021-12-04
  • 2021-12-18
  • 2021-11-13
  • 2021-06-18
  • 2022-01-20
  • 2021-12-06
猜你喜欢
  • 2022-01-06
  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2021-04-18
  • 2021-10-20
相关资源
相似解决方案