Giter Club home page Giter Club logo

Comments (5)

majidhassan avatar majidhassan commented on June 4, 2024 2

@nerakhon @cleever since I got no reply on that, I solved it using the parse-server-mailgun package, which allows setting the subject as well as templates for your verification and reset emails.

from parse-server-simple-mailgun-adapter.

cleever avatar cleever commented on June 4, 2024

I think the same.

It would be great if we could be able to do the following type of configuration in email adapter.

Eg.:

emailAdapter = {
    module: emailModule,
    options: {
      fromAddress: process.env.EMAIL_FROM,
      domain: process.env.EMAIL_DOMAIN,
      apiKey: process.env.EMAIL_API_KEY,
      // Verification email subject
      verificationSubject: 'Aenean ornare arcu sed pharetra faucibus %appname% - Phasellus semper magna nec aliquam rutrum. ',
      // Verification email body
      verificationBody: Lorem ipsum dolor sit amet %email% amet %appname%\n\n Maecenas mi sem, commodo vitae rutrum ac, aliquam ut diam.:\n%link%',
      // Password reset email subject
      passwordResetSubject: 'Proin fermentum libero eu tempus hendrerit. %appname%',
      // Password reset email body
      passwordResetBody: 'Lorem ,\n\nDuis eu turpis ac mauris lacinia faucibus %appname%.\n\nNam vulputate tortor odio, a mattis nulla auctor vel.:\n%link%'
    }

from parse-server-simple-mailgun-adapter.

nerakhon avatar nerakhon commented on June 4, 2024

Definitely +1 on my side as well.

Actually it would be more useful if a template for the email could be used, given the usual expectation is to send html emails to the users.

So If we could provide a template somewhere outside the source of parse server that could be used to send the nice branded emails would be really useful.

from parse-server-simple-mailgun-adapter.

cleever avatar cleever commented on June 4, 2024

Great @majidhassan! Thank you!
The parse-server-mailgun package helped me a lot!

from parse-server-simple-mailgun-adapter.

mtrezza avatar mtrezza commented on June 4, 2024

This adapter is really just a most basic version of a mail adapter, almost like a proof of concept. There are many more versatile mail adapters available for Parse Server.

from parse-server-simple-mailgun-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.