我的脚本用于发送通知电子邮件,它在我的本地机器上运行良好,但是当我将其移至服务器 2k3 时,电子邮件无法发送,并出现以下错误日志:
Exception calling "Send" with "1" argument(s): "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.1 Client was
not authenticated"
At line:1 char:19
+ $smtp_buglist.Send <<<< ($mail_buglist)
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
请帮帮我,我很困惑。
答案1
我解决了这个问题,我需要做的就是标记$send.UseDefaultCredentials
为“真”