[英]MS Exchange Server SMTP name for PowerShell script
如果我想使用PowerShell 5將來自最近遷移的MS Exchange Server上的MS Outlook帳戶的電子郵件發送到IMAP上的MS Hotmail帳戶,如下所示:
$splatr = @{
To = 'her@hotmail.com'
From = 'him@outlook.com'
Subject ='test'
Body ='test'
SmtpServer ='??????'
Port = 587
UseSSL = $true
}
Send-MailMessage @splatr -Credential him@outlook.com
請問從哪里可以得到Outlook / Exchange Server SMTP名稱?
如果相反,我會用
SmtpServer ='smtp-mail.outlook.com'
謝謝。
在Outlook中,
替代;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.