Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Email PowerShell发送邮件和Microsoft Exchange 2007_Email_Powershell_Smtp_Exchange Server - Fatal编程技术网

Email PowerShell发送邮件和Microsoft Exchange 2007

Email PowerShell发送邮件和Microsoft Exchange 2007,email,powershell,smtp,exchange-server,Email,Powershell,Smtp,Exchange Server,我在使用Microsoft Exchange 2007发送电子邮件时遇到问题 我在另一台机器上使用了完全相同的powershell代码,它会发送电子邮件 它给出的错误消息是: Send-MailMessage : Mailbox unavailable. The server response was: 5.7.1 Unable to relay At C:\Users\alex\Desktop\Email.ps1:37 char:29 + Send-MailMessag

我在使用Microsoft Exchange 2007发送电子邮件时遇到问题

我在另一台机器上使用了完全相同的powershell代码,它会发送电子邮件

它给出的错误消息是:

Send-MailMessage : Mailbox unavailable. The server response was: 5.7.1 Unable to relay
At C:\Users\alex\Desktop\Email.ps1:37 char:29
+             Send-MailMessage <<<<  @Parameters
    + CategoryInfo          : InvalidOperation: (System.Net.Mail.SmtpClient:SmtpClient) [Send-MailMessage], SmtpFailedRecipientException
    + FullyQualifiedErrorId : SmtpException,Microsoft.PowerShell.Commands.SendMailMessage
发送邮件消息:邮箱不可用。服务器响应为:5.7.1无法中继
在C:\Users\alex\Desktop\Email.ps1:37 char:29

+Send MailMessage用于中继的接收连接器可能没有运行脚本的计算机的IP地址。您需要在Exchange服务器上对此进行检查