Back

What is Difference between Smtp vs oAuth

  • 0
  • Users
  • Flutter
  • Accounts
new user
1 May, 2023, 22:10

i can access my localhost, should i provide https://localhost/ instead of https://example.com%27/ ?

TL;DR
The user is asking about the differences between SMTP and OAuth. They mention that setting up their own SMTP server may result in emails going to spam. They are looking for a free SMTP provider. The conversation includes discussions about configuring domains, editing email profile details, and security concerns. The user also shares an URL and asks for help understanding how to update passwords securely. The conversation concludes with a suggestion to use the URL of the client application being built and a question about using localhost.
new user
1 May, 2023, 22:11
Drake
1 May, 2023, 22:22

It should be the url of your client application that you're building

Drake
1 May, 2023, 22:24

Maybe this will help clarify: https://dev.to/appwrite/30daysofappwrite-email-verification-and-forgot-password-420o.

Some things might be outdated, but the general idea/flow is the same

new user
1 May, 2023, 22:34

still not clear, how she/he got the url or created the urllet promise = sdk.account.createRecovery('email@example.com', 'http://myappdomain/resetPassword');

Drake
1 May, 2023, 22:40

you as the developer set it because you're building and deploying the app

new user
2 May, 2023, 22:04

if i dont use url for redirecting, and just extracting the userid and secret key from url (received url in mail ) and then update the password, this will be secure ?

Drake
2 May, 2023, 22:05

How are you going to update the password?

new user
2 May, 2023, 22:07

this the url got in mail will extract the user id and key and pass it to update method

new user
2 May, 2023, 22:07

here is the update method from doc import 'package:appwrite/appwrite.dart';

TypeScript
  Client client = Client();
  Account account = Account(client);

  client
    .setEndpoint('https://cloud.appwrite.io/v1') // Your API Endpoint
    .setProject('5df5acd0d48c2') // Your project ID
  ;
  Future result = account.updateRecovery(
    userId: '[USER_ID]',
    secret: '[SECRET]',
    password: 'password',
    passwordAgain: 'password',
  );

  result
    .then((response) {
      print(response);
    }).catchError((error) {
      print(error.response);
  });
}```
Drake
2 May, 2023, 22:08

Sure

new user
2 May, 2023, 22:09

is this is a good idea with respect to security concern ?

Drake
2 May, 2023, 22:10

Sure

new user
2 May, 2023, 22:10

ok thanks

new user
2 May, 2023, 22:13

how to edit emails profile picture, name, title etc, and why mail is receiving in spam although i am using SMTP.

Drake
2 May, 2023, 22:17

There's an environment variable for the from email.

What SMTP provider are you using?

new user
2 May, 2023, 22:18

sendinblue

Drake
2 May, 2023, 22:19

Maybe the domain is misconfigured

new user
2 May, 2023, 22:20

how to configure domain ?

new user
2 May, 2023, 22:22

for domain configration have to buy domain ?

Drake
2 May, 2023, 22:28

Yes and you typically have to do some extra stuff to prove you're the owner. I'm sure you can Google how to make sure your emails don't end up in spam

new user
2 May, 2023, 22:30

i am looking for totally free smtp, do u have any idea ?

Drake
2 May, 2023, 22:30

Regardless of whatever you use, it will take effort to get it configured

new user
2 May, 2023, 22:32

so setting up own smtp means, landing in spam?

Drake
2 May, 2023, 22:32

If you set up your own SMTP server, it will end up in spam. If you use a provider, you're less likely, but you have to configure it properly

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