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
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)
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
- [Dragon Crashers] Build fails in U6
- [Dragon Crashers] 4 Shader error messages on import
- [Dragon Crashers] Readme text is white on light grey
- Cursor stays in front of the first character when entering text in the TextMeshPro field
- Searching in Hierarchy causes unwanted component calls
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
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/
logansah123
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="https://www.my-accountrecovery.com/gmail-account-recovery/"><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="https://www.my-accountrecovery.com/gmail-account-recovery/"><b>https://www.my-accountrecovery.com/gmail-account-recovery/</b></a>
logansah123
Nov 06, 2019 14:15
Call us for instant solution of Gmail account recovery
Are you caught with the problem of <a href="https://www.my-accountrecovery.com/
"><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="https://www.my-accountrecovery.com/"><b>https://www.my-accountrecovery.com/</b></a>
buttar71006
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:- https://www.contact-customer-service.co/gmail-phone-number/
buttar71006
Oct 31, 2019 09:45
Ask your technical queries directly to the team of Gmail support
Interested in seeking <a href="https://www.emailcontacthelp.com/gmail-technical-support-number.html/"><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="https://www.emailcontacthelp.com/gmail-technical-support-number.html/"><b> https://www.emailcontacthelp.com/gmail-technical-support-number.html/</b></a>
logansah123
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. https://www.contact-customerservice.net/gmail-help-centre/
buttar71006
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:- https://www.contact-customer-service.co/yahoo-help-number/
buttar71006
Oct 19, 2019 06:39
Unable To Recover your Gmail Account then just take guidance from Gmail Help
If you are a Gmail account user and you are not able to recover your lost Gmail account then avail Gmail Help. By just making a call or leaving a text you avail of the Gmail Help. Our professionals are 24/7 accessible to provide you with the best service at an affordable rate. Now resolve your all technical and other issues instantly with us 1-855-436-1666.
Read More:- https://www.contact-customerservice.net/gmail-help-centre/
sofimariyam
Oct 18, 2019 12:33
If you are a Gmail account user and you are not able to recover your lost Gmail account then avail Gmail Help. By just making a call or leaving a text 1-855-436-1666 you avail of the Gmail Help. Our professionals are 24/7 accessible to provide you with the best service at an affordable rate. Now resolve yours all technical and other issues instantly with us. https://www.contact-customerservice.net/gmail-help-centre/