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

Feature Request: "View this email in your Browser" and Public Archive of Previous Campaigns #540

Closed
candideu opened this issue Oct 26, 2021 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@candideu
Copy link
Contributor

candideu commented Oct 26, 2021

Describe the solution you'd like
It would be great if there was an option for people to view an email in the browser (similar to #503 , #486 ).

Likewise, it would be great if there was a link to a webpage which listed previous campaigns and allowed visitors to click and preview them. As of now, previews can only be seen in the admin panel.

Here is an example with MailChimp. When someone clicks on "View this email in your browser", they're taken to a webpage like this:

image

From that page, they're able to view an archive of past newsletters:
image

This is useful to show potential subscribers what kind of content they can expect, and for easy sharing online.

@candideu candideu added the enhancement New feature or request label Oct 26, 2021
@knadh
Copy link
Owner

knadh commented Oct 26, 2021

It would be great if there was an option for people to view an email in the browser.

This already exists. Use the {{ MessageURL }} template tag to generate the URL.

Likewise, it would be great if there was a link to a webpage which listed previous campaigns and allowed visitors to click and preview them.

Yep, this will be good to have with an admin setting to toggle public archives.

@knadh knadh self-assigned this Oct 26, 2021
@candideu
Copy link
Contributor Author

candideu commented Oct 26, 2021

This already exists. Use the {{ MessageURL }} template tag to generate the URL.

Oh, that's wonderful!! I just tried this out with a test campaign, however, I'm being prompted to log in:

image

@knadh
Copy link
Owner

knadh commented Oct 26, 2021

Looks like the images are all pointing to incorrect URLs. /campaign/.../*.png. Are the images fine in your e-mail? Are you using the filesystem or s3 for images?

@candideu
Copy link
Contributor Author

candideu commented Oct 26, 2021

Looks like the images are all pointing to incorrect URLs. /campaign/.../*.png. Are the images fine in your e-mail? Are you using the filesystem or s3 for images?

Yup, that's normal since I just copy pasted the code from an existing template builder and didn't point the images to the a real URL. I just wanted to test out the {{ MessageURL }} function with a random template I had on hand.

The issue I'm seeing is that although using {{ MessageURL }} works (I used it in the "View in browser" link of the test), subscribers are being asked to log in when they click on the generated message URL.

@knadh
Copy link
Owner

knadh commented Oct 26, 2021

The broken image links are relative and are incorrectly pointing to admin URLs, which is what is causing the login prompts.

@candideu
Copy link
Contributor Author

candideu commented Oct 26, 2021

Ohhh, I see! Tried it again with no images, and it works with no login prompts. As always, thank you for your timely help and great application!

@NicoHood
Copy link
Contributor

How about integrating this into the upstream template? Looks like a common feature.

@knadh
Copy link
Owner

knadh commented Oct 26, 2021

Yeah. This should ideally sit in the default template's footer. Will add this to the default template.

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

No branches or pull requests

3 participants