use tls SSLv3 to send email, fix #192

This commit is contained in:
lesion 2023-10-24 21:04:24 +02:00
parent 56bc50480b
commit 829de697f2
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ export default {
computed: mapState(['settings']), computed: mapState(['settings']),
watch: { watch: {
'smtp.secure' (value) { 'smtp.secure' (value) {
this.smtp.port = value ? 465 : 25 this.smtp.port = value ? 465 : 587
} }
}, },
methods: { methods: {

View file

@ -49,7 +49,7 @@ const mail = {
locale, locale,
locales: Object.keys(locales) locales: Object.keys(locales)
}, },
transport: settings.smtp || {} transport: { ...settings.smtp, tls: { ciphers: 'SSLv3'}, requireTLS: true } || {}
}) })
const opt = { const opt = {