This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

doobyeee10080
doobyeee10080

Hi,

I have extended the User Plugin. I have add the language for each user. I would like to send email in the langue of each user. I did it for 3 mails : activate, restore and welcome but not for reactivate and invite. I don't know how to override the method of the user model.

For the mail :

  • activate, I rewrite the function sendActivationEmail of the Account component.
  • restore, I rewrite the function onRestorePassword of the Restore component.
  • welcome, I use the listener "rainlab.user.activate" in my Plugin (boot) and in the user setting, I chosed "don't send notification".

For the mail reactivate, I can use the listener "rainlab.user.reactivate", but it send a mail in english before. I can comment it, but it's not really clean to do this. I don't know what will be the best method to do it. How to override or extend the User method "afterLogin" and "sendInvitation" or not send this email. And maybe for the other mails, you have a best idea too...

If you have any idea, it would be great. Thank you

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.