misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
10.11k stars 1.38k forks source link

SMTP test mail fails #11467

Open Canorus opened 1 year ago

Canorus commented 1 year ago

💡 Summary

Send test mail via smtp fails with error message

Endpoint: admin/send-email
Info: {"e":{"message":"Message failed: 450 The from.email field is required. The from.email field is required.","code":"Error","id":"****"}}
Date: 2023-08-05T13:50:12.403Z

🥰 Expected Behavior

Test mail should be received

🤬 Actual Behavior

Test mail fails

📝 Steps to Reproduce

  1. Input all the required information from mail server in config
  2. send test mail
  3. find message that says something along 'internal server error: unexpected internal server error occurred'

📌 Environment

config:

image

I know this value is correct because it's working configuration on my Mastodon instance.

💻 Frontend

🛰 Backend (for server admin)

saschanaz commented 1 year ago

Per the code it looks like the test mailing uses the saved email address rather than the address in the form, can you try again after saving the form? And which mailing service do you use?

https://github.com/misskey-dev/misskey/blob/db5046ed3a6b156094f2863b3941854865c25214/packages/frontend/src/pages/admin/email-settings.vue#L100-L114

Canorus commented 1 year ago

Same error happens even after saving the value.

Just to be clear, above error message occurs when implicit SSL/TTS is disabled(and saved), below is error message when implicit SSL/TTS is enabled(and saved):

Endpoint: admin/send-email
Info: {"e":{"message":"C02790174E7F0000:error:0A00010B:SSL routines:ssl3_get_record:wrong version number:../deps/openssl/openssl/ssl/record/ssl3_record.c:355:\n","code":"Error","id":"***"}}
Date: 2023-08-07T07:03:47.908Z

I'm using mailersend.net for mailing service.