Openfoodnetwork: Email problem in FR prod

Created on 18 Oct 2019  路  6Comments  路  Source: openfoodfoundation/openfoodnetwork

Description

I have a user that didn't receive his confirmation email.

Lynne suggested the good idea to put an email in copy of the email sent, in order for me to find this particular confirmation email and forward it to the user.

This ended up with email problems:

Unhandled error
Net::SMTPFatalError: 550 Unauthenticated senders not allowed
Location
app/controllers/user_confirmations_controller.rb:13 - create

Sigmund suggested DJ should maybe be restarted?

Steps to Reproduce

Here are all the steps I did:

  1. Loged in as super admin
  2. Went to /admin/mail_method There is a field that says "send a copy of all email to". There I've put my email. Saved.
  3. Got back to the user profile and tried to resend the confirmation email. Failed.
  4. Removed my email, retried, failed again.

Severity

bug-s2: a non-critical feature is broken, no workaround

  • Version used: v2.5.2
  • Browser name and version: Firefox 69
  • Operating System and version (desktop or mobile): Desktop
bug-s2

Most helpful comment

ok, plan:

  • set the credentials correctly on the form and save.
  • see if this solves problem 馃
  • if not, restart delayed_job
  • see if this solves problem 馃
  • if not, rethink :-)

All 6 comments

have you tried to set the correct sendgrid credentials when you change something in the form? maybe you need to always enter the credentials when updating this form.

A password/username update also requires restarting Delayed_Job https://github.com/openfoodfoundation/ofn-install/wiki/Sending-emails-from-OFN#configuring-a-mail-method-automatically

ok, plan:

  • set the credentials correctly on the form and save.
  • see if this solves problem 馃
  • if not, restart delayed_job
  • see if this solves problem 馃
  • if not, rethink :-)

@luisramos0 So I've just retried with the password and now I could send the email. I'm waiting to see if I received the email in copy.

Shall we open something to add a message on this page? It's really not obvious that you need to delete the password and copy/paste it again....

Got the email, closing! Thank you all!!!

ehehe, nice.
yes, we should create an issue for that "be able to update mail method without touching password field"

Was this page helpful?
0 / 5 - 0 ratings