Search Issue Tracker

Fixed in 2018.2

Fixed in 2017.2, 2017.3, 2018.1

Won't Fix in 2017.1



Found in


Issue ID




[IL2CPP] [.NET 4.6] Mail doesn't send when calling SmtpClient.Send



Reproduction steps:
1. Allow less secure apps to access your email account.
- Google guide:
- Unity account may not be viable for security reasons (Tested with personal email).
2. Open the attached project.
3. Open EmailTestingScript.cs
4. Fill 'TODO' sections.
- Tested with host and 587 port.
5. Play the Main scene.
- Success message will show.
6. Make sure Scripting Backend is set to IL2CPP and Scripting Runtime Version to .NET 4.6 in iOS Build Settings.
7. Build and run in iOS device.
-An email will not send with the following message:
System.Net.Mail.SmtpException: Message could not be sent. ---> System.IO.IOException: Connection closed
at System.Net.Mail.SmtpClient.Read () [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Mail.SmtpClient.SendCommand (System.String command) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00000] in <00000000000000000000000000000000>:0
at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00000] in <00000000000000000000000000000000>:0
at EmailTestingScript.Start () [0x00000] in <00000000000000000000000000000000>:0
--- End of inner exception stack trace ---
at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00000] in <00000000000000000000000000000000>:0
at EmailTestingScript.Start () [0x00000] in <00000000000000000000000000000000>:0

Reproduced with:
.Net 4.6
2017.1.1f1, 2017.3.0a7
iPad Mini 2 10.3.1, iPhone 6 Plus 8.0

Not reproducible with:
.Net 3.5
5.6.3p2 (feature was not introduced)

Comments (16)

  1. 92050a3f8612183f6a7be0332b58158a?d=mm


    Dec 03, 2019 07:03

    I must thanks you to share this most awesome information

  2. 92050a3f8612183f6a7be0332b58158a?d=mm


    Nov 22, 2019 10:19

    Outlook error 0x800CCC0E is commonly the most widely recognized error in MS Outlook,
    During their emails users face Outlook error 0x800CCC0E.
    Here we talk discuss about what causes the error and how easily fix this error.

  3. 92050a3f8612183f6a7be0332b58158a?d=mm


    Nov 19, 2019 10:46

    If you encounter the message Gmail Error 007 on the screen then you don’t have to worry. This is most likely to pop up when using Gmail. This Gmail server error 007 is common and simple to solve.

  4. 92050a3f8612183f6a7be0332b58158a?d=mm


    Nov 11, 2019 06:48

    I got the same gmail error which was fixed after visiting

  5. 583de166b0db9073ff4af788965e35d0?d=mm


    Nov 06, 2019 14:20

    Forgotten Gmail Password then recover your Password by performing Gmail Account Recovery

    If you have forgotten your password then by performing the <a href=""><b>Gmail Account Recovery </b></a>step you can retrieve your password. For retrieving Gmail Password you need to enter your email id or registered phone number. If in case you are confronting problem while retrieving Gmail Password then you can also recover it by availing Customer Care Service at any time. <a href=""><b></b></a>

  6. 583de166b0db9073ff4af788965e35d0?d=mm


    Nov 06, 2019 14:15

    Call us for instant solution of Gmail account recovery
    Are you caught with the problem of <a href="
    "><b>Gmail account recovery</b></a>? If your answer is yes then you must try our reliable customer support service. To get this service at your doorstep, you need to contact us through our helpline number 1-833-293-6333 or live chat. We always provide to the point solution to the users. <a href=""><b></b></a>

  7. 3bcd688c04feddabe737bf66d18ec2cf?d=mm


    Oct 31, 2019 09:45

    Troubleshoot the technical errors by dialing Gmail phone number

    Having the error in moving the email from spam to inbox? If this trouble is happening with you repeatedly, you need to connect with us via Gmail phone number that is toll-free and 24 hours operational. All the technical hurdles of your Gmail account will be completely removed in an easy way 1-833-554-3444.
    Read More:-

  8. 3bcd688c04feddabe737bf66d18ec2cf?d=mm


    Oct 31, 2019 09:45

    Ask your technical queries directly to the team of Gmail support

    Interested in seeking <a href=""><b> Gmail support</b></a>for immediate resolution of the problem? If you say yes then our technical team is ready to help your 365 days. By the instructions provided by our techies, users can easily overcome their stress and frustration. Our support service is one call away from you, so, contact us 1-833-891-2999.

    Read More:- <a href=""><b></b></a>

  9. 583de166b0db9073ff4af788965e35d0?d=mm


    Oct 25, 2019 07:36

    Call to contact our gmail service for speedy Gmail help
    If you are fed with the sudden technical issues of Gmail account then get quick Gmail help and avail reliable technical support. Our team comprises of consultants and technical engineers that offer effective troubleshooting steps. Ring on the contact number for getting rid of the technical troubles from the highly skilled techies call at 1-855-436-1666.

  10. 3bcd688c04feddabe737bf66d18ec2cf?d=mm


    Oct 19, 2019 06:39

    Unable To Forward or receive the email then for help call at Yahoo Phone Number

    If you are trying hard to call to send or receive messages then try calling at our yahoo phone number. Our experts will reach to you and resolve all your queries in concern to this. There could be a technical problem that you might not be able to resolve on your own. Contact us anytime as we are available all round the clock 1-833-554-3444.
    Read More:-

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.