mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
switch smtp library, add, HELLO hostname option
now using xhit/go-simple-mail, as I wanted to add an option to change the hostname sent in the HELLO message but this is only possible with STARTTLS in jordan-wright/email. New option can be seen in Settings > SMTP with advanced settings turned on.
This commit is contained in:
@@ -71,6 +71,8 @@ func (app *appContext) loadConfig() error {
|
||||
app.MustSetValue("deletion", "email_html", "jfa-go:"+"deleted.html")
|
||||
app.MustSetValue("deletion", "email_text", "jfa-go:"+"deleted.txt")
|
||||
|
||||
app.MustSetValue("smtp", "hello_hostname", "localhost")
|
||||
|
||||
jfUrl := app.config.Section("jellyfin").Key("server").String()
|
||||
if !(strings.HasPrefix(jfUrl, "http://") || strings.HasPrefix(jfUrl, "https://")) {
|
||||
app.config.Section("jellyfin").Key("server").SetValue("http://" + jfUrl)
|
||||
|
||||
Reference in New Issue
Block a user