Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2020.3.X, 2021.3.X, 2022.1.X
Votes
9
Found in
2019.4
2020.3
2021.2
2022.1
2022.1.0b2
2022.2
Issue ID
1389326
Regression
No
System.Net.Mail.SmtpException: 421 4.7.66 TLS 1.0 and 1.1 are not supported error is throw when sending an email with SmtpClient
Reproduction steps:
1. Open the "SampleScene" Scene in the attached project "TLS_1_2.zip"
2. Enter the Play mode
3. Observe the Console
Expected result: Email is sent and "Email sent successfully" Debug is printed
Actual result: Email is not sent and "System.Net.Mail.SmtpException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2." exception is thrown
Reproducible with: 2019.4.36f1, 2020.3.29f1, 2021.2.12f1, 2022.1.0b2, 2022.1.0b8, 2022.2.0a5
Full error message:
Send failed: System.Net.Mail.SmtpException: 421 4.7.66 TLS 1.0 and 1.1 are not supported. Please upgrade/update your client to support TLS 1.2. Visit https://aka.ms/smtp_auth_tls. [FR0P281CA0040.DEUP281.PROD.OUTLOOK.COM]
at System.Net.Mail.SmtpClient+<>c__DisplayClass90_0.<SendAsync>b__0 (System.Object o, System.ComponentModel.DoWorkEventArgs ea) [0x0002c] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0
at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs e) [0x00019] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0
at System.ComponentModel.BackgroundWorker.WorkerThreadStart (System.Object argument) [0x0000e] in <ef151b6abb5d474cb2c1cb8906a8b5a4>:0
UnityEngine.Debug:Log (object)
SendMail:SmtpClientOnSendCompleted (object,System.ComponentModel.AsyncCompletedEventArgs) (at Assets/SendMail.cs:47)
UnityEngine.UnitySynchronizationContext:ExecuteTasks ()
Note: Issue is not reproducible if email address allows 1.0 or 1.1 connections
Comments (2)
-
LuauLex
May 24, 2022 13:15
+1
-
MightyBox
May 03, 2022 19:39
This is an extremely urgent issue for production projects since Microsoft no longer support TLS 1.0 or 1.1. Production projects can't use Unity 2022.2 which is still in alpha at the time of writing! Please do not mark this issue as Resolved without a working solution for LTS versions!!
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shadows are not visible in Player when using DX12 with Forward+ or Deferred+ rendering in URP
- Rendering Debugger Playmode debug UI scrolling is jittery when using click and drag to scroll
- Frame Debugger Target Selection Search Results window becomes too tiny to even see the default “Editor” selection when there are no search results
- Element name field has no character limit in UI Builder
- Async method in Play Mode being aborted when calling `new System.Windows.Forms.Form`
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a11
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.1f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.4f1