Giveth / giveth-dapp

Giveth Dapp for crowdfunding and managing donations on the ethereum blockchain.
https://beta.giveth.io
GNU General Public License v3.0
359 stars 230 forks source link

Email to Previous Givers When a New Giver Donates to Milestone #1696

Open horus2021 opened 3 years ago

horus2021 commented 3 years ago

Notificaiton email to previous givers of a project (milesotne/ comapain/ community) when a new giver donates. As a giver this a greate news. Project is live and your are not the only nice person in the world. This email increase the engagment of previous givers to the cause of giving. This is informative email. No action is required from receiver.

I copy/paste notification email markup code to giver as a template. here. It gives copywriter idea.

We need nice and inspiring English text for the following pars

  1. subject
  2. secretIntro
  3. title
  4. text

module.exports = { donation: (app, data) => { data.amount = Number(data.amount) / 10 ** 18;

Object.assign(data, {
  template: 'notification',
  subject: 'Giveth - Thank you for your donation!',
  secretIntro: `Thank you for your donation of ${data.amount} ${data.token.symbol} to the ${data.donationType} "${data.donatedToTitle}"!`,
  title: 'You are so awesome!',
  image: 'Giveth-donation-banner-email.png',
  text: `
    <p><span style="line-height: 33px; font-size: 22px;">Hi ${data.user}</span></p>
    <p>
      Thank you very much for your donation of ${data.amount} ${data.token.symbol} to the ${data.donationType} <em>${data.donatedToTitle}</em>.
      With your donation we can really make this happen, and you play a vital part in making the world a better place!
    </p>
  `,
  cta: 'Manage your Donations',
  ctaRelativeUrl: '/donations',
  unsubscribeType: 'donation-receipt',
  unsubscribeReason: 'You receive this email from Giveth because you have made a donation',
});

sendEmail(app, data);

},

horus2021 commented 3 years ago

image