Closed
Description
- Gitea version (or commit ref):
1.14.0+dev-84-ge2740b32b
- Git version:
git version 2.29.1.341.ge80a0c044a
- Operating system: Arch Linux
- Built from source
- Yes
- Run with
- systemd
- Database:
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- No
Description
I have been testing the recently introduced sendmail functionality and my instance doesn't want to proceed with the following error
[gitea@nebula ~]$ gitea admin sendmail --title "[Test] Gitea sendmail" --content "Please disregard this email as it is just a test of Gitea sendmail functionality."
Proceed with sending email? [Y/n] y
error: Unable to contact gitea: Post "api/internal/mail/send": unsupported protocol scheme ""
The error does not disappear even when I explicitly point the command to a valid config, which does have the data necessary to speak to Gitea and are apparently missing in the POST request being sent out (namely protocol scheme and app URL), as documented below
[gitea@nebula ~]$ gitea admin sendmail --config /etc/gitea/app.ini --title "[Test] Gitea sendmail" --content "Please disregard this email as it is just a test of Gitea sendmail functionality."
Proceed with sending email? [Y/n] y
error: Unable to contact gitea: Post "api/internal/mail/send": unsupported protocol scheme ""
Also, logs (set to debug) with gitea in dev mode don't yield anything.