Forum Discussion
Yuli0203
2 years agoHonored Guest
How to send an email from Quest 3 standalone app?
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?
4 Replies
Replies have been turned off for this discussion
- MetaStoreHelpCommunity Manager
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.
- MetaStoreHelpCommunity Manager
Hi there,
Just following up to see if you still need a hand?
- Yuli0203Honored Guest
Yes, I sent a PM
- Yuli0203Honored Guest
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:
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 12 months ago