Hi, I created a ruby on rails app on Replit and is trying to create a contact form that will email me the content of the form fields to me whenever a new user submits.
At the moment, the website seems to work but I’m not able to actually receive the email and there’s no error message in the logs. Also checked spam as well, there’s nothing there.
I’m trying to use sendgrid to send the email
I’m thinking maybe it’s the configuration file being put in the wrong environment? I have the following in production.rb. is this the right place to put it?
ActionMailer::Base.smtp_settings = {
user_name: 'apikey', # This is the string literal 'apikey', NOT the ID of your API key
password: ENV['SENDGRID_API_KEY'], # This is the secret sendgrid API key which was issued during API key creation
domain: 'evdatahub.com',
address: 'smtp.sendgrid.net',
port: 587,
authentication: :plain,
enable_starttls_auto: true
}