Git Product home page Git Product logo

Comments (5)

ankane avatar ankane commented on August 25, 2024 1

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.

abrambailey avatar abrambailey commented on August 25, 2024

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.

ankane avatar ankane commented on August 25, 2024

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.

hesiod-au avatar hesiod-au commented on August 25, 2024

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.

ankane avatar ankane commented on August 25, 2024

Thanks for sharing @hesiod-au 👍

from ahoy_email.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.