XF 2.2 Email send dont work

Ricsca

Well-known member
Having problems sending emails, after many attempts I managed to get Amazon Ses SMTP to work. Now if I try to send an email from my site (via the contact email) it arrives and therefore I think everything is working fine, also because in admin I no longer receive any system errors.
The problem is that users (and I too) don't receive emails notifying me if there is a new reply to a discussion I follow or have replied to.
What should I check?
Thank you
 
This option cannot be mandated since it depends on the user's preference. However, you can establish this option as the default setting for new members, but they will then have the choice to deactivate it on their account settings page.

/admin.php?options/groups/usersAndRegistration/
 
I figured out the problem that I had set up new users correctly, the problem is that I imported a custom forum that didn't have this option and so all old users don't have email options active! How can I activate them for all old users? Thanks

IMG_0572.webp
 
Last edited by a moderator:
I understand that it depends on the users' preference but since I imported the users from an old custom forum that did not have the e-mail option I would like it to be activated by default for all old users who then no longer want to receive e-mails I will set it by their preferences.
 
It is not feasible within the ACP; it may be possible within the database, but that carries risks.
It is a risk, but you could try this on a test database

Code:
UPDATE xf_user_option
SET creation_watch_state = 'watch_email'

Code:
UPDATE xf_user_option
SET interaction_watch_state = 'watch_email'
 
They are for the Content Options in user preferences:

  • Automatically watch content you create…
      • and receive email notifications
  • Automatically watch content you interact with…
      • and receive email notifications
 
They are for the Content Options in user preferences:

  • Automatically watch content you create…
      • and receive email notifications
  • Automatically watch content you interact with…
      • and receive email notifications

I just thought I should also activate:
  • Automatically watch content you create...
  • Automatically watch content you interact with…
 
My forum is in Italy so it's only for:

(UTC+1:00) Central European Time

The problem is that having migrated from a custom forum I realized that all the users were already registered on

(UTC) Casablanca
 
@Mr Lucky thanks, you're great, it works...
Could you tell me how to activate these three items too?

  • Receive news and update emails
  • Receive activity summary email
  • Receive email when a new conversation message is received
Very thanks
 
No guarantees, always test and don't blame me if it breaks so have a backup

Code:
UPDATE xf_user_option
SET receive_admin_email = '1'

Code:
UPDATE xf_user SET
last_summary_email_date = NULL;

Code:
UPDATE xf_user_option
SET email_on_conversation = '1'
 
I understand that it depends on the users' preference but since I imported the users from an old custom forum that did not have the e-mail option I would like it to be activated by default for all old users who then no longer want to receive e-mails I will set it by their preferences.
I think it's worth pointing out that altering user preferences could be against your country's privacy laws, I'm sure forcing opt in is against GPDR anyway.
 
Back
Top Bottom