Comments (5)
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.
Also check out this link . It's a good example of how to use the module wit Cloud code.
from parse-server-mailgun.
Thank you very much!
The last link is very helpful and shed light on my doubts!
from parse-server-mailgun.
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.
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)
- Not able to send emails... HOT 5
- Malformed email link generated with {{link}} HOT 6
- BCC field not working in extras HOT 2
- Mailgun Integration With Swift/Parse HOT 1
- An appName, publicServerURL, and emailAdapter are required for password reset and email verification functionality. HOT 4
- Error: 'to' parameter is missing HOT 1
- How to modify pages like email_verification_success.html and invalid_link.html ? HOT 1
- How to redirect user to the website after successful email confirmation? HOT 1
- can't open attached files HOT 1
- Mailgun Adapter Not Sending Emails HOT 1
- Link in text email is URL-encoded HOT 3
- Email Confirmation and Password Reset Link HOT 1
- Question about parse-server-mailgun... HOT 13
- Quick question... HOT 9
- Security issue for v2.4.8 HOT 1
- An appName, publicServerURL, and emailAdapter are required for password reset and email verification functionality. HOT 2
- Mailgun working but cant connect to app for password reset. HOT 1
- Email subject templating
- Support eu-mails HOT 1
- Mailgun TLS 1.0/1.1 deprecation on March 8, 2021
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parse-server-mailgun.