且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有收到从SMTP发送的邮件吗?

更新时间:2022-12-07 19:53:33

您已将deliveryMethod指定为SpecifiedPickupDirectory,这使得它实际上并未发送邮件.而是将其保存在您提到的文件夹中的硬盘上.将其设置为network,它将发送电子邮件.您还需要设置密码和用户名以及端口号和主机.

有关发送邮件的更多详细信息,请查看MSDN文章,此处 [^ ] .
You have specified the deliveryMethod to be SpecifiedPickupDirectory this makes it not send the mail actually. Instead it saves on your hard disc in the folder you mentioned. Set it to network and it will send the email. You also need to setup the password and the username along with port number and host.

For more details on sending mail, check out the MSDN article, here[^].