Error 404 via email online view

Your software
My Mautic version is: 2.16
My PHP version is: 7.3

Your problem
My problem is: Hi. I need some help about preview of email. I sent a email test to see if the link to the web view is working and I’ve got an error 404. I don’t understand why ?

These errors are showing in the log:
nginx log => [28/Sep/2020:18:37:31 +0200] “GET /email/view/5f720f087c406 HTTP/1.1” 404 60997 “-”

Steps I have tried to fix the problem:

  • check my nginx config
  • check permission on folder and file of mautic

If you send a test as ‘test’ tokens are not processed. Try to test by doing a real send to a test segment. (Your unsubscribe also won’t work by sending test as test.)

Actually reading it the second time, you might have another issue. Let us know here how you tested.

Thanks. I did’nt know that condition

Ok, still could tou check if it worked?

I’ve tried and It’s worked fine :wink:

I have the same issue here, the web view goes to 404, not sure how did you actually sort it out?

Are you sending test or real send?

What do you mean by test or real send? I’m testing on a staging setup.

When you send an email with “send test” button, then not webview nor unsubscribe link will be populated. Tokens like {contactfield=firstname} won’t be rendered either.
When you send emails to a segment, then all of those should work.

Ok no, I’m not using the send test button. The email is triggered by a form submission. However, the web view of the email doesn’t work and I get this 404. *Everything else works fine

Okay. Is the email published?

yes the email is published and sent. The web view link doesn’t work

Can u plz post the link here?

Here it is: email webview link

Here it is: email webview link

For me this link looks very short… Can plz someone else chime in?

Try setting “Preview URL” to public to see if it make any difference

it is already set to public