piszczynski>Aleks No edit summary |
piszczynski>Aleks No edit summary |
||
| Line 7: | Line 7: | ||
For the labels to be accessed in outlook the labels need to be published in the the compliance center in the O365 portal - see this MS documentation for details https://docs.microsoft.com/en-gb/microsoft-365/compliance/create-sensitivity-labels?view=o365-worldwide | For the labels to be accessed in outlook the labels need to be published in the the compliance center in the O365 portal - see this MS documentation for details https://docs.microsoft.com/en-gb/microsoft-365/compliance/create-sensitivity-labels?view=o365-worldwide | ||
==Test Office365 email== | |||
Test smtp submission with the following script: | |||
<pre> | |||
# Get the credential | |||
$credential = Get-Credential | |||
## Define the Send-MailMessage parameters | |||
$mailParams = @{ | |||
SmtpServer = 'smtp.office365.com' | |||
Port = '587' # or '25' if not using TLS | |||
UseSSL = $true ## or not if using non-TLS | |||
Credential = $credential | |||
From = 'sender@yourdomain.com' | |||
To = 'recipient@yourdomain.com', 'recipient@NotYourDomain.com' | |||
Subject = "SMTP Client Submission - $(Get-Date -Format g)" | |||
Body = 'This is a test email using SMTP Client Submission' | |||
DeliveryNotificationOption = 'OnFailure', 'OnSuccess' | |||
} | |||
## Send the message | |||
Send-MailMessage @mailParams | |||
</pre> | |||
Revision as of 16:07, 12 July 2023
Office365 Deployment
Deploy using the OfficeDeploymentTool
Sensitivity Labels
sensitivity labels are used in outlook and other applications to set access and to conform with compliance for data retention.
For the labels to be accessed in outlook the labels need to be published in the the compliance center in the O365 portal - see this MS documentation for details https://docs.microsoft.com/en-gb/microsoft-365/compliance/create-sensitivity-labels?view=o365-worldwide
Test Office365 email
Test smtp submission with the following script:
# Get the credential
$credential = Get-Credential
## Define the Send-MailMessage parameters
$mailParams = @{
SmtpServer = 'smtp.office365.com'
Port = '587' # or '25' if not using TLS
UseSSL = $true ## or not if using non-TLS
Credential = $credential
From = 'sender@yourdomain.com'
To = 'recipient@yourdomain.com', 'recipient@NotYourDomain.com'
Subject = "SMTP Client Submission - $(Get-Date -Format g)"
Body = 'This is a test email using SMTP Client Submission'
DeliveryNotificationOption = 'OnFailure', 'OnSuccess'
}
## Send the message
Send-MailMessage @mailParams