fix(backend): correct email from (#8501)

This commit is contained in:
Moriz Wahl 2025-05-07 19:42:39 +02:00 committed by GitHub
parent 290a176407
commit 50bc62428e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 33 additions and 31 deletions

View File

@ -3,7 +3,7 @@
exports[`sendChatMessageMail English chat_message template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -130,7 +130,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendChatMessageMail German chat_message template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>

View File

@ -3,7 +3,7 @@
exports[`sendEmailVerification English renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -133,7 +133,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendEmailVerification German renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>

View File

@ -3,7 +3,7 @@
exports[`sendNotificationMail English changed_group_member_role template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -129,7 +129,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English commented_on_post template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -257,7 +257,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English followed_user_posted template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -385,7 +385,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English mentioned_in_comment template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -513,7 +513,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English mentioned_in_post template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -640,7 +640,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English post_in_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -766,7 +766,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English removed_user_from_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -889,7 +889,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English user_joined_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -1016,7 +1016,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail English user_left_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -1143,7 +1143,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German changed_group_member_role template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -1269,7 +1269,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German commented_on_post template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -1397,7 +1397,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German followed_user_posted template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -1525,7 +1525,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German mentioned_in_comment template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -1653,7 +1653,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German mentioned_in_post template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -1780,7 +1780,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German post_in_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -1906,7 +1906,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German removed_user_from_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -2029,7 +2029,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German user_joined_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -2156,7 +2156,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendNotificationMail German user_left_group template 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>

View File

@ -3,7 +3,7 @@
exports[`sendRegistrationMail with invite code English renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -142,7 +142,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendRegistrationMail with invite code German renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>
@ -282,7 +282,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendRegistrationMail without invite code English renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -421,7 +421,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendRegistrationMail without invite code German renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>

View File

@ -3,7 +3,7 @@
exports[`sendResetPasswordMail English renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -132,7 +132,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendResetPasswordMail German renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>

View File

@ -3,7 +3,7 @@
exports[`sendWrongEmail English renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="en">
<head>
@ -130,7 +130,7 @@ ocelot.social Community [https://ocelot.social]",
exports[`sendWrongEmail German renders correctly 1`] = `
{
"attachments": [],
"from": "ocelot.social",
"from": "ocelot.social <devops@ocelot.social>",
"html": "<!DOCTYPE html>
<html lang="de">
<head>

View File

@ -28,11 +28,13 @@ const defaultParams = {
renderSettingsUrl: true,
}
const from = `${CONFIG.APPLICATION_NAME} <${CONFIG.EMAIL_DEFAULT_SENDER}>`
const transport = createTransport(nodemailerTransportOptions)
const email = new Email({
message: {
from: `${CONFIG.APPLICATION_NAME}`,
from,
},
transport,
i18n: {