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

Preview not working? #1138

Open
mgs96 opened this issue Mar 19, 2024 · 3 comments
Open

Preview not working? #1138

mgs96 opened this issue Mar 19, 2024 · 3 comments

Comments

@mgs96
Copy link

mgs96 commented Mar 19, 2024

Describe the bug
Setting up
preview: { open: true, }
On the mailer module configuration doesn't open the browser showing the template.

Expected behavior
Mail is displayed on the browser.

Screenshots
Screenshot 2024-03-18 at 7 08 23 PM

This is how I'm calling the sendMail function:
Screenshot 2024-03-18 at 7 11 16 PM

Desktop:

  • OS: macOS 14.2.1
  • Browser: safari
  • Version: 17.2.1

Additional context
It was my understanding that if the preview: true was set up, the mail would not be sent, is this the case?

@buti1021
Copy link

Running into the same issue on Windows

@buti1021
Copy link

		MailerModule.forRoot({
			transport: {jsonTransport: true},
			preview: true,
		}),

this is my config, according to the code here the issues is, that templateAdapter is undefined (which is suiting my config, but in my understanding should not change that preview works. I guess the preview part should be moved out of this condition or be included in an else block

if (templateAdapter) {

@mgs96 mgs96 closed this as completed Oct 26, 2024
@buti1021
Copy link

@mgs96
I dont think this has been resolved?
Could you leave this open please?

@mgs96 mgs96 reopened this Oct 26, 2024
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

2 participants