mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add wallet link to transaction mail, first approach
This commit is contained in:
parent
a5e10c2ed9
commit
ea5589a840
@ -125,6 +125,7 @@ export const executeTransaction = async (
|
||||
}
|
||||
|
||||
// send notification email
|
||||
const overviewURL = new URL('/overview' /* , XXX CONFIG.CLIENT_URI */) // http://localhost/overview
|
||||
// TODO: translate
|
||||
await sendTransactionReceivedEmail({
|
||||
senderFirstName: sender.firstName,
|
||||
@ -135,6 +136,7 @@ export const executeTransaction = async (
|
||||
senderEmail: sender.email,
|
||||
amount,
|
||||
memo,
|
||||
overviewURL: overviewURL.toString(),
|
||||
})
|
||||
|
||||
return true
|
||||
|
||||
@ -11,6 +11,7 @@ export const sendTransactionReceivedEmail = (data: {
|
||||
senderEmail: string
|
||||
amount: Decimal
|
||||
memo: string
|
||||
overviewURL: string
|
||||
}): Promise<boolean> => {
|
||||
return sendEMail({
|
||||
to: `${data.recipientFirstName} ${data.recipientLastName} <${data.email}>`,
|
||||
|
||||
@ -12,6 +12,7 @@ export const transactionReceived = {
|
||||
senderEmail: string
|
||||
amount: Decimal
|
||||
memo: string
|
||||
overviewURL: string
|
||||
}): string =>
|
||||
`Hallo ${data.recipientFirstName} ${data.recipientLastName}
|
||||
|
||||
@ -25,6 +26,9 @@ ${data.memo}
|
||||
Bitte antworte nicht auf diese E-Mail!
|
||||
|
||||
Mit freundlichen Grüßen,
|
||||
dein Gradido-Team`,
|
||||
dein Gradido-Team
|
||||
|
||||
|
||||
Link zur Übersicht: <a href="${data.overviewURL}">Deine Übersicht</a>`,
|
||||
},
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user