Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.mailer.send callback not called #46

Open
mlistiak opened this issue Jan 20, 2019 · 0 comments
Open

app.mailer.send callback not called #46

mlistiak opened this issue Jan 20, 2019 · 0 comments

Comments

@mlistiak
Copy link

                        console.log(app.mailer.send);

			await new Promise(async (resolve, reject) => {
				app.mailer
					.send('email-plan-downgraded', {
						from: process.env.MAIL_FROM,
						to: accounts[0].email,
						subject: 'Platený program expiroval',
						upgradeLink: `${process.env.PROTOCOL}://${process.env.HOST}${port}/admin`,
						deactivatedOffers,
					}, (err, res) => {
						if (err) {
							console.log(res);
							reject(err);
						}
						console.log(res);
						resolve(res);
					});
			});

console returns only: [Function]

No error or response. Every help is appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant