Clearance email host & port

I have an app running on my local machine for testing. App uses Clearance, newly-installed, and Postfix for SMTP relay. the app is running at 10.12.12.105:4000 (rails s -p4000 -b10.12.12.105). However, when I use the “forgot Password?” link, the email is created with a link of “localhost:3000…”

Why is this and how do I fix it?

Hi @JESii, have you tried setting

config.action_mailer.default_url_options = { host: 'your_host' }

in your config/environments/development.rb (or the intended environment)?

1 Like

Of course, @pedromoreira; I should have thought of that. Thanks for the reminder.

No problem, glad to help :slight_smile: