Comments (5)
Hey Abram, don't be afraid to dive into the code to figure out what's up - it's one of the best parts about open source. Looking here, you can see the signature is failing to validate. Be sure your secret_token
is the same on the server that sends the emails and the server that tracks clicks.
from ahoy_email.
Oh hey thanks for the response @ankane ... Weird as the email is generated on the production server and tracked by the production server. I am using the secrets.yml
file in my app. Everything works well in development. Do I need to put AhoyEmail.secret_token = SECRET_HASH
in the initializer, or do anything else to avoid this problem?
from ahoy_email.
secret_token
should be set automatically. If the config is consistent on the servers that send the emails and the servers that track the clicks, it should just work.
from ahoy_email.
This is a year late for abrambailey, but I had the same issue, it was being caused by the prod server having automatic redirects from http to https. If the email has the host set to http then the link is processed from the redirected https link, the hashes won't match.
Setting the host to https in production.rb did the trick:
config.action_mailer.default_url_options = { :host => "https://www.xxxx.xxxx" }
from ahoy_email.
Thanks for sharing @hesiod-au 👍
from ahoy_email.
Related Issues (20)
- Api only application HOT 2
- User model is available but not set in Ahoy::Message HOT 4
- How to store or replay the message body? HOT 3
- Catch (SMTP) errors when sending e-mails HOT 3
- Open Tracking - triggering multiple times? HOT 2
- Filtering false opens HOT 3
- Plan HOT 1
- Instance model HOT 3
- Use RuboCop? HOT 2
- [Idea] Classify mails on basis other than users
- Url link is not consistent with hash signature HOT 2
- PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block HOT 2
- Track utm_params breaks links with nested content HOT 2
- Proper way to globally set user mapping logic? HOT 4
- Bring back open tracking HOT 1
- Allow redirections to other/external hosts for click event HOT 3
- Extra data not saving in Ahoy::Message table while using instance variables HOT 5
- "Link expired" for all links in the email HOT 3
- Email link for CLICK ANALYTICS throws 404 HOT 1
- [Idea] Support track_links for the text version of emails HOT 1
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 ahoy_email.