cancel
Showing results for 
Search instead for 
Did you mean: 

How to send an email from Quest 3 standalone app?

Yuli0203
Honored Guest

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 4

MetaQuestSupport
Community Manager
Community 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.

MetaQuestSupport
Community Manager
Community Manager

Hi there,

 

Just following up to see if you still need a hand?

Yes, I sent a PM

Yuli0203
Honored 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:
image (3).png