0
如果我wamted从最近迁移MS Outlook帐户MS Exchange服务器上的MS Hotmail帐户使用PowerShell的5 IMAP这样一封电子邮件:MS Exchange服务器SMTP名PowerShell脚本
$splatr = @{
To = '[email protected]'
From = '[email protected]'
Subject ='test'
Body ='test'
SmtpServer ='??????'
Port = 587
UseSSL = $true
}
Send-MailMessage @splatr -Credential [email protected]
哪里我会从中获取Outlook/Exchange Server SMTP名称吗?
如果它是周围的其他方法,我会用
SmtpServer ='smtp-mail.outlook.com'
谢谢。
给出配置了SMTP的交换服务器的IP地址。默认情况下,它使用端口25,否则你必须通过端口作为参数,如-Port –
谢谢,Ranadip。我可以轻松地将587更改为25,但是我会在哪里获取SMTP Exchange服务器的IP地址? – user2825094
你问我们你的Exchange服务器地址是什么? – Swonkie