![](https://it-infrastructure.solutions/content/images/2022/01/image-123.png)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
Prerequisites:
- an Office 365 Subscription. If you do not have this yet, you can Sign up for an Office 365 E5 trial subscription.
- a Mailbox + Credentials
Setting Up the SMTP Relay
# Check if SMTP is installed before installing it.
$smtp = get-WindowsFeature "smtp-server"
if(!$smtp.Installed){
write-host "SMTP is not installed, installing it..." -ForegroundColor red
add-WindowsFeature $smtp
}
else{
write-host "SMTP is already installed!" -ForegroundColor Cyan
}
![](https://it-infrastructure.solutions/content/images/2022/01/image-135.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-136.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-138.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-139.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-141.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-142.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-149.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-150.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-151.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-153.png)
![](https://it-infrastructure.solutions/content/images/2022/01/image-154.png)
Sources:
How to Set Up an Office 365 SMTP Relay with Connectors
https://it-infrastructure.solutions/docker-office-365-mail-relay/
Install SMTP Server and Telnet with PowerShell
Summary SharePoint and general app servers often use the SMTP Service to integrate e-mail into the systems functionality. Since Windows supports a well vetted SMTP Service, using the built-in application is often the best choice. With the said, when testing your app functionality with e-mail, Teln…