Search Issue Tracker

Fixed in 2018.2

Fixed in 2017.2, 2017.3, 2018.1

Won't Fix in 2017.1

Votes

0

Found in

2017.1.0p5

Issue ID

947208

Regression

No

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

IL2CPP

-

Reproduction steps:
1. Allow less secure apps to access your email account.
- Google guide: https://support.google.com/accounts/answer/6010255?hl=en
- 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 smtp.gmail.com 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 (22)

  1. 401450189cc71a2af44dc6c27cf6d086?d=mm

    unity_RhLJZlRsBwHWCw

    Mar 04, 2020 05:19

    Each Honda is a result of creative designing and quality assembling. What’s more, just very much kept up Honda models that are under six years of age and have a greatest of 80,000 miles are qualified for affirmation. The confirmation procedure incorporates
    https://goodmorninglove.in/love-shayari-hindi/

    For those that desire to add on a couple of extras within their Kia Cadenza they can opt for the lane departure warning, blind spot monitoring, or the rear cross traffic alert. For convenience they may also choose to have the adaptive cruise control.
    https://goodmorninglove.in/50-positive-attitude-quotes-in-hindi-and-english-for-girl/

    On the off chance you have selected the best car dealers then you will not have to worry about anything as they will keep everything on its time when you trust them. All you have to do is to hand over your worries to the dealers and they will handle it for you.
    https://goodmorninglove.in/good-morning-quotes/

  2. 401450189cc71a2af44dc6c27cf6d086?d=mm

    unity_RhLJZlRsBwHWCw

    Mar 04, 2020 05:17

    The vehicle possesses a quality standard six speed automatic transmission so drivers can enjoy down shifts without any flaws. What is especially noted about this vehicle is the smooth ride that it can give. By and large this vehicle is among the best decisions for the family that needs a vehicle that can be trusted and depended upon.
    https://www.automartz.com/two-wheeler/buy-sell/mopeds

  3. 45803a2682b795c93705bba8ec83360c?d=mm

    geekisquad0

    Dec 25, 2019 11:54

    Hi Sir, Nice post it's very knowledgeable. Hi, I am Sam Watson I am a technical specialist and work in a technical industry. If you want any recommendation from me associated to HP Printer Assistant we will get to the bottom of your trouble in a handy way.
    Visit: https://www.geekisquad.com/hp

  4. 3bcd688c04feddabe737bf66d18ec2cf?d=mm

    buttar71006

    Dec 25, 2019 11:16

    Technical Glitches With Messenger? Avail how to fix yahoo account hacked issue
    Is some technical problems encountered while on yahoo messenger? Or some complex technical issue is causing a nightmare. Well! For the purpose of resolving these problems effectively from the root, meet a team of knowledgeable professionals who have excellent problem-solving proficiency and provide how to fix yahoo account hacked issue​ on time. . . # merrychristmasVissit Us:- https://www.digitalworldsupport.com/social-media/how-to-fix-yahoo-account-hacked-issue/

  5. 3bcd688c04feddabe737bf66d18ec2cf?d=mm

    buttar71006

    Dec 25, 2019 11:16

    How To Create Facebook Page, Contact Facebook Help
    If you want to improve your business do create a Facebook page, but if you are not aware of the Facebook page then just avail Facebook Help as our professional will tell you all the benefits of the Fb page can also help you out creating the page on Facebook. To avail of our help, none just needs to contact at.. # merrychristmasVissit Us:- https://www.emailcontacthelp.com/blog/acquire-facebook-help-logout-active-sessions/

  6. 3bcd688c04feddabe737bf66d18ec2cf?d=mm

    buttar71006

    Dec 25, 2019 11:15

    Create A Google Homepage
    Create a Google Homepage for utilizing quicker help and for practicing the Google extra highlights. By building Google as your landing page you can basically include augmentation and bookmark the connections. If you need any supervision concerning building Google homepage then simply avail Gmail Help as they will support you in comprehending your questions identified with Gmail. . # merrychristmas Vissit Us:- https://www.googlehome-page.com/

  7. 92050a3f8612183f6a7be0332b58158a?d=mm

    mailhelpus5

    Dec 03, 2019 07:03

    I must thanks you to share this most awesome information
    https://mailhelp.us/blog/fix-outlook-error-0x800ccc0e/

  8. 92050a3f8612183f6a7be0332b58158a?d=mm

    mailhelpus5

    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.
    https://mailhelp.us/blog/outlook-error-0x800ccc0e/

  9. 92050a3f8612183f6a7be0332b58158a?d=mm

    mailhelpus5

    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.
    https://mailhelp.us/blog/fix-gmail-error-007

  10. 92050a3f8612183f6a7be0332b58158a?d=mm

    mailhelpus5

    Nov 11, 2019 06:48

    I got the same gmail error which was fixed after visiting
    https://mailhelp.us/blog/fix-gmail-error-007/

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.