The first method to send email is via smtp client submission or smtp authenticated submission.
Office 365 smtp relay powershell.
Smtp simple mail transfer protocol is used when you set up an on premises multi function printer scanner fax or line of business lob application that needs to send email.
However office 365 requires authenticating the user account and does not play fair the traditional way.
Microsoft 365 or office 365 smtp relay has higher sending limits than smtp client submission.
In order to send an email from powershell we will need to specify an smtp server.
The easiest way to do that is to use powershell.
To open powershell right click the start button and choose windows powershell.
Mail from powershell using office 365 smtp.
Below is a snippet you can use to send email via this method.
In this section we ll create some powershell scripts to allow you to easily ensure the connector is working properly.
It is very easy to check if your smtp server is working correctly by simply utilizing powershell.
We will be using office 365 smtp to relay the mails.
We will have to fill out couple of parameters before triggering the send mailmessage command which will relay the email.
All i had to do is enter the credentials and then send a test email.
If some or all of your mailboxes are in office 365 there are a few options available.
June 19 2018 stefan 0 comments office365 smtp test mail min read today i will show you how to test office 365 smtp server using powershell.
Use the following information for sending a test email through office 365 using powershell.
Microsoft 365 or office 365 smtp relay does not require the use of a licensed microsoft 365 or office 365 mailbox to send emails.
Smtp relay client smtp submission or direct send.
After creating the connector prepare to test it out.
Enter the following command.
Testing the office 365 smtp relay connector with powershell.
Everyone is familiar with sending a test email through an smtp server using telnet.