Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: test email address cause SMTP disconnected #4952

Open
2 tasks done
gepd opened this issue Jan 5, 2023 · 12 comments
Open
2 tasks done

🐛 Bug Report: test email address cause SMTP disconnected #4952

gepd opened this issue Jan 5, 2023 · 12 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@gepd
Copy link
Contributor

gepd commented Jan 5, 2023

👟 Reproduction steps

  1. Add your SMTP credentials in your .env file
  2. Run docker exec appwrite doctor
  3. You can get SMTP.............disconnected 👎

👍 Expected behavior

You should get SMTP................connected 👍

👎 Actual Behavior

Currently the doctor try to send an email to [email protected]

$mail->addAddress('[email protected]', 'Example.com');

debuggin the error returned by the code, I have found this message:

PHPMailer\PHPMailer\Exception: SMTP Error: The following recipients failed: [email protected]: The mail server could not deliver mail to [email protected].  The account or
domain may not exist, they may be blacklisted, or missing the proper dns
entries.

So my SMTP server haven't any problem but as the server can't find the address [email protected] it fails

In my instance I have updated the code and I've added the env var _APP_SMTP_TEST_EMAIL to change this address

Would you accept a PR to fix this issue with this change?

🎲 Appwrite version

Version 1.2.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@gepd gepd added the bug Something isn't working label Jan 5, 2023
@stnguyen90
Copy link
Contributor

@gepd thanks for raising this! let me check with the team on this.

@stnguyen90 stnguyen90 self-assigned this Jan 5, 2023
@LyVanBong
Copy link

I am also encountering a problem with the SMTP configuration of the Outlook Office 365 email. Has anyone encountered this issue before? Can anyone help me with this, I would greatly appreciate it. Thank you.

@stnguyen90
Copy link
Contributor

Actually, instead of an environment variable, I think it would be good to expose the email as a parameter to the CLI command.

@stnguyen90 stnguyen90 removed their assignment Jul 10, 2023
@stnguyen90 stnguyen90 added the good first issue Good for newcomers label Jul 10, 2023
@mustansirgodhrawala
Copy link

Hey there, can this issue be assigned to me? I would like to go a step forward and include a small feature with your permission to create a quick smtp test button with CSRF in the UI for quick smtp testing for easier onboarding as well.

I'm quite intrigued by Appwrite and would like an opportunity to delve into the codebase and contribute beyond bugs.

@mustansirgodhrawala
Copy link

Hey there @stnguyen90, can I handle this issue?

@Haimantika
Copy link
Contributor

Hey there @stnguyen90, can I handle this issue?

Assigning this to you.

@mustansirgodhrawala
Copy link

@Haimantika Rest assured, I'm handling this issue. I should have a PR out by eod tomorrow, some of my changes could break our e2e tests so I'm trying to avert major changes.

@stnguyen90
Copy link
Contributor

@mustansirgodhrawala will you be able to address the comments in the PR and fix the merge conflict?

@DevilsAutumn
Copy link

DevilsAutumn commented Oct 8, 2023

@mustansirgodhrawala will you be able to address the comments in the PR and fix the merge conflict?

Can I continue this ? If yes, please assign me.

@stnguyen90
Copy link
Contributor

Unassigning @mustansirgodhrawala due to inactivity. Assigning @DevilsAutumn now.

@nick2432
Copy link

can i work on this?

@stnguyen90
Copy link
Contributor

@DevilsAutumn, are you still working on this? @nick2432, are you still interested in working on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants