Search Issue Tracker

Fixed in 2018.2.X

Fixed in 2017.2.X, 2017.3.X, 2018.1.X

Won't Fix in 2017.1.X

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 (24)

  1. ltutoting

    Aug 11, 2020 22:11

    <a href="https://cashapphelp.online/">Contact Cash App Customer Service</a>
    <a href="https://cashapphelp.online/">Cash App Customer Service</a>
    <a href="https://cashapphelp.online/">Cash App Customer Service Number</a>
    <a href="https://cashapphelp.support/">Cash App Customer Service Phone Number</a>
    <a href="https://cashapphelp.online/">Cash App Contact Number</a>
    https://cashapphelp.online/
    https://cashapphelp.online/
    ==
    <a href="https://cashapphelp.online/">Cash App Support</a>
    <a href="https://cashapphelp.online/">Cash App Support Number</a>
    <a href="https://cashapphelp.online/">Cash App Support Phone Number</a>
    <a href="https://cashapphelp.online/">Cash App Phone Number</a>
    <a href="https://cashapphelp.online/">Cash App Toll-Free Number</a>
    <a href="https://cashapphelp.online/">Cash App Customer Service Phone Number</a>

  2. cryptonumber

    Jun 03, 2020 04:42

    Call our Bitcoin customer service phone number, If you are facing any technical issues you need help of our trained professional at <a href="https://cryptonumbersupport.com/bitcoin-customer-service"> Bitcoin support number</a>

  3. 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/

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

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

  6. 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/

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

  8. 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/

  9. mailhelpus5

    Dec 03, 2019 07:03

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

  10. 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/

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.