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

Mono

-

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

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a11

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.1f1

  3. Resolution Note (fix version 2021.3):

    Fixed in: 2021.3.4f1

Comments (2)

  1. LuauLex

    May 24, 2022 13:15

    +1

  2. 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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.