Back

[SOLVED] Unauthorized Scope

  • 0
  • Self Hosted
BloodThermic
19 Jun, 2023, 01:14

I just changed from tls to ssl to see if that fixes it

TL;DR
User is experiencing an "Unauthorized Scope" issue. They are trying to customize an email feature. It is mentioned that the issue has been solved. The user was initially using the wrong port. They were provided with some code to try, which included changing the SMTP settings in the .env file. The user confirms that they have made the necessary changes and it should work.
Deleted User
19 Jun, 2023, 01:14

Have you set your SMTP settings in the .env file?

BloodThermic
19 Jun, 2023, 01:14

yes

BloodThermic
19 Jun, 2023, 01:15

and I have checked that when I ran docker compse up -d it changed the .env files and it did

Deleted User
19 Jun, 2023, 01:15

Okay, that souns like it should work

Deleted User
19 Jun, 2023, 01:16
TypeScript
      - _APP_SMTP_HOST
      - _APP_SMTP_PORT
      - _APP_SMTP_SECURE
      - _APP_SMTP_USERNAME
      - _APP_SMTP_PASSWORD

What you put in host port and secure?

BloodThermic
19 Jun, 2023, 01:16
TypeScript
_APP_SMTP_PORT=993
_APP_SMTP_SECURE=ssl
_APP_SMTP_USERNAME=noreply@phelps.fit
_APP_SMTP_PASSWORD=password
_APP_SYSTEM_EMAIL_NAME=PhelpsFit
_APP_SYSTEM_EMAIL_ADDRESS=noreply@phelps.fit
BloodThermic
19 Jun, 2023, 01:17

appwrite is running localy does that do anything

Deleted User
19 Jun, 2023, 01:17

No,

Deleted User
19 Jun, 2023, 01:17

But who is your email provider?

BloodThermic
19 Jun, 2023, 01:17

Me. Its on my server

BloodThermic
19 Jun, 2023, 01:17

it works though outlook

Deleted User
19 Jun, 2023, 01:18

Mmm I'm not sure about that one, But who is the one who sends the email eventually?

Deleted User
19 Jun, 2023, 01:18

You must have some provider, Like you don't have any server for sending the emails?

BloodThermic
19 Jun, 2023, 01:19

I have a server that has a 2 vms on it one running appwrite the other running plesk on 2 diffrent IP address. Plesk is host the website and the email

Deleted User
19 Jun, 2023, 01:20

Gotcha

Deleted User
19 Jun, 2023, 01:21

And this is the user name and the password you've set in your plesk? Maybe you can try without @phelps.fit Like so

TypeScript
_APP_SMTP_USERNAME=noreply
_APP_SMTP_PASSWORD=password
BloodThermic
19 Jun, 2023, 01:22

ill try

BloodThermic
19 Jun, 2023, 01:27

GOT IT!

BloodThermic
19 Jun, 2023, 01:27

Wrong port like and idiot

BloodThermic
19 Jun, 2023, 01:27

Thank you @Deleted User for your help!

BloodThermic
19 Jun, 2023, 01:27

[SOLVED] Unauthorized Scope

BloodThermic
19 Jun, 2023, 01:29

Is there a way to customize the email

Deleted User
19 Jun, 2023, 01:30

Not for now, This is a popular requested feature.

BloodThermic
19 Jun, 2023, 01:30

damn! OK!

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more