appwrite: πŸ› Bug Report: test email address cause SMTP disconnected

πŸ‘Ÿ 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 demo@example.com

https://github.com/appwrite/appwrite/blob/15107f0f5cf40b647e8d282e2c84322ba0bfd370/app/tasks/doctor.php#L139

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

PHPMailer\PHPMailer\Exception: SMTP Error: The following recipients failed: demo@example.com: The mail server could not deliver mail to demo@example.com.  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 demo@example.com 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?

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 28 (11 by maintainers)

Commits related to this issue

Most upvoted comments

@DH-555 understood sir…i have raised a proposal on another bug…if you have time,please review it once

Hello. We’re discussing what’s the best approach for this

Working on the same and will resolve it by 1st week of feb

On Tue, 28 Jan, 2025, 12:42 pm Raman Tank, @.***> wrote:

Is this bug solved yet?

β€” Reply to this email directly, view it on GitHub https://github.com/appwrite/appwrite/issues/4952#issuecomment-2618087465, or unsubscribe https://github.com/notifications/unsubscribe-auth/A274Q675VXOJOIDETBBFTRL2M4UUTAVCNFSM6AAAAAATSBGRQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJYGA4DONBWGU . You are receiving this because you were mentioned.Message ID: @.***>

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

@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.

Hey there @stnguyen90, can I handle this issue?

Assigning this to you.

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