11-07-2024 08:06 AM
Hello,
I am using SmtpClient which works well in the Editor for sending an email with attachments from the app. I am logging in to a Gmail account with 2FA and app password.
var smtpClient = new SmtpClient("smtp.gmail.com", 587)
{
Credentials = new NetworkCredential(senderEmail, senderPassword),
EnableSsl = true,
};
But when I build the app and run it on the device it won't work. I added a custom manifest with Android networking permissions. I have no idea what else could be blocking it, and if it can be easily solved. I know there are third party services but I prefer to go for the simple solution if possible.
Sending an email from the app sound to me like a basic feature that should be simple. Anyone else encountered this problem?
11-07-2024 02:21 PM
Hi there,
Thanks for posting into our forum. We can see you're having some problems sending an email from a Quest 3 app, we'd like to see what we can do to help! Would you mind sending us a PM? To do this, please select our name to get to our profile page. Next, click "Send a Message" to privately message us! Please remember, you must be signed into the community first to send us a private message.
Looking forward to hearing from you.
11-08-2024 02:23 PM
Hi there,
Just following up to see if you still need a hand?
11-09-2024 02:26 AM
Yes, I sent a PM
Wednesday
I stumbled upon the solution in Unity Forum. Apparently there was a sadistic hidden setting that kept removing my internet permissions not matter what I did. I saw through adb logcat I am still missing the permission even though it was in the manifest.
If you are using OpenXR and have a problem like mine, be sure to disable this setting: