GithubHelp home page GithubHelp logo

Comments (5)

sebsylvester avatar sebsylvester commented on September 14, 2024

Please check out the module's documentation. In particular the code section under the 'Templates' header. This will probably fix the issue.

from parse-server-mailgun.

sebsylvester avatar sebsylvester commented on September 14, 2024

Also check out this link . It's a good example of how to use the module wit Cloud code.

from parse-server-mailgun.

mikall avatar mikall commented on September 14, 2024

Thank you very much!
The last link is very helpful and shed light on my doubts!

from parse-server-mailgun.

cheesykyle avatar cheesykyle commented on September 14, 2024

I recommend looking into this more. It definitely seems like a bug.

Even after moving the following into the Cloud.define function:
const MailgunAdapter = AppCache.get('myAppId')['userController']['adapter'];
It still returns with:
[ReferenceError: username is not defined]

This seems like a logical and reasonable way to call the adapter from CloudCode.

from parse-server-mailgun.

sebsylvester avatar sebsylvester commented on September 14, 2024

Hi, I have just used Cloud Code to send a few test emails with custom templates, and they all arrived to my inbox.

About your error message:

[ReferenceError: username is not defined]

As stated in the docs, it's only in the password reset and address verification messages, that you can use the following template variables by default: link, appName, username and email.
When using the adapter directly, you have to pass all variables that you want to use explicitly.

If that doesn't help you, I don't know what the problem is. But it's not the module.

from parse-server-mailgun.

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.