appwrite: πŸ› Bug Report: SMTP not work for me

πŸ‘Ÿ Reproduction steps

`- _APP_SMTP_HOST=smtp.hostinger.com

  • _APP_SMTP_PORT=465
  • _APP_SMTP_SECURE=tls
  • _APP_SMTP_USERNAME=support@********.com
  • _APP_SMTP_PASSWORD=*********`

Attaching to appwrite-worker-mails appwrite-worker-mails | Appwrite mails worker v1 has started appwrite-worker-mails | appwrite-worker-mails | [notice] Starting worker 211803452e5f:8:v1-mails appwrite-worker-mails | appwrite-worker-mails | Fatal error: Uncaught RedisException: socket error on read socket in /usr/src/code/vendor/colinmollenhour/credis/Client.php:1171 appwrite-worker-mails | Stack trace: appwrite-worker-mails | #0 /usr/src/code/vendor/colinmollenhour/credis/Client.php(1171): Redis->ping() appwrite-worker-mails | #1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php(265): Credis_Client->__call('ping', Array) appwrite-worker-mails | #2 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(180): Resque_Redis->__call('ping', Array) appwrite-worker-mails | #3 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false) appwrite-worker-mails | #4 {main} appwrite-worker-mails | appwrite-worker-mails | Next CredisException: socket error on read socket in /usr/src/code/vendor/colinmollenhour/credis/Client.php:1189 appwrite-worker-mails | Stack trace: appwrite-worker-mails | #0 /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php(265): Credis_Client->__call('ping', Array) appwrite-worker-mails | #1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(180): Resque_Redis->__call('ping', Array) appwrite-worker-mails | #2 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false) appwrite-worker-mails | #3 {main} appwrite-worker-mails | appwrite-worker-mails | Next Resque_RedisException: Error communicating with Redis: socket error on read socket in /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php:268 appwrite-worker-mails | Stack trace: appwrite-worker-mails | #0 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(180): Resque_Redis->__call('ping', Array) appwrite-worker-mails | #1 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false) appwrite-worker-mails | #2 {main} appwrite-worker-mails | thrown in /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php on line 268 appwrite-worker-mails | Appwrite mails worker v1 has started appwrite-worker-mails | appwrite-worker-mails | [notice] Starting worker 211803452e5f:7:v1-mails appwrite-worker-mails | appwrite-worker-mails | Fatal error: Uncaught CredisException: LOADING Redis is loading the dataset in memory in /usr/src/code/vendor/colinmollenhour/credis/Client.php:1242 appwrite-worker-mails | Stack trace: appwrite-worker-mails | #0 /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php(265): Credis_Client->__call('smembers', Array) appwrite-worker-mails | #1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(104): Resque_Redis->__call('smembers', Array) appwrite-worker-mails | #2 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(517): Resque_Worker::all() appwrite-worker-mails | #3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(391): Resque_Worker->pruneDeadWorkers() appwrite-worker-mails | #4 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(167): Resque_Worker->startup() appwrite-worker-mails | #5 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false) appwrite-worker-mails | #6 {main} appwrite-worker-mails | appwrite-worker-mails | Next Resque_RedisException: Error communicating with Redis: LOADING Redis is loading the dataset in memory in /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php:268 appwrite-worker-mails | Stack trace: appwrite-worker-mails | #0 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(104): Resque_Redis->__call('smembers', Array) appwrite-worker-mails | #1 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(517): Resque_Worker::all() appwrite-worker-mails | #2 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(391): Resque_Worker->pruneDeadWorkers() appwrite-worker-mails | #3 /usr/src/code/vendor/resque/php-resque/lib/Resque/Worker.php(167): Resque_Worker->startup() appwrite-worker-mails | #4 /usr/src/code/vendor/resque/php-resque/bin/resque(185): Resque_Worker->work('1', false) appwrite-worker-mails | #5 {main} appwrite-worker-mails | thrown in /usr/src/code/vendor/resque/php-resque/lib/Resque/Redis.php on line 268 appwrite-worker-mails | Appwrite mails worker v1 has started appwrite-worker-mails | appwrite-worker-mails | [notice] Starting worker 211803452e5f:7:v1-mails

πŸ‘ Expected behavior

Send email.

πŸ‘Ž Actual Behavior

Not send emails.

🎲 Appwrite version

Version 0.13.x

πŸ’» Operating system

Linux

🧱 Your Environment

yes use Cloudflare

πŸ‘€ 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: closed
  • Created 2 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

Its a good ideia to change the documentation OR make it works with TSL value. image

I changed _APP_SMTP_SECURE from tls to ssl an it works!

If anything, it might be good to update this issue to be for the incorrect message in the admin console saying an email was sent.

Emails are sent when the Create Team Membership API call is made from a client SDK. Using Admin console (admin mode) or Server SDK, the user is automatically added so there’s no need for an email for the user to accept the invitation.

Try changing _APP_SMTP_SECURE to ssl.