This plugin for MODX Revolution sends an email message to users when they are activated manually in the MODX Manager and (optionally) a second message to deactivated users.
Report bugs and suggestions here.
Ask any questions about using this plugin here.
The first thing to do is to make sure the plugin is installed properly. Create a new user with your email address. Activate and deactivate the user a few times and see if you get an email message. If you don't, make sure your email system is working by downloading and installing the QuickEmail snippet.
The deactivation email is off by default so you won't get it unless you change the sendOnDeactivation property of the plugin to True. If you won't be using that feature, don't bother.
Once the email is arriving. The odds are that you will want to modify one or both of the Tpl chunks containing the message forms (if not, you're done -- sit back and relax). In order to keep the Tpl chunks from being overwritten by upgrades, duplicate and rename them.
Like the Tpl chunk(s), you don't want the properties to be overwritten during an upgrade, so you should create a property set for your own settings.
Now we need to tell MODX to use our own property set with the plugin
Activate and deactivate your user a few times. Make sure the emails are still arriving and that the messages are correct.
Edit the plugin and click on the "Properties" tab. Make sure you are editing your own property set, not the default properties, by selecting MyActivationEmailProperties in the drop-down list at the upper left of the grid. You can see what each property does by clicking on the little plus sign next to it in the grid. Set the properties to meet your needs. Be sure not to edit anything except the "Value" column.
When you're finished click on the "Save Property Set" button. Notice that any properties you change show up in green once you save the set. That shows that they have different values than the default properties
You may have to clear the site cache to before your changes take effect.
The two Tpl chunks can be completely rewritten to meet your needs. Be sure to edit the two duplicate Tpl chunks, not the ones that
were installed with the Activation Email package. Be sure to include the
The other placeholders are optional. All will be set to appropriate system settings, but you can set their values in the property set you created. You can also modify them or remove them if you wish. Since you've renamed the Tpl chunks, your changes will survive any upgrades.
Note that the
The following properties control the behavior of the ActivationEmail plugin. If you need to alter any of them be sure to create a property set and specify it on the System Events tab as described above. When changing the property values, always be sure that you're modifying your property set and not the default properties. The default properties are locked to remind you to do so.
| Property | Effect | Default |
|---|---|---|
| &sendOnActivation | Send activation email | `1` |
| &sendOnDeactivation | Send deactivation email | `0` |
| &activationEmailTpl | Tpl chunk for activation email | `ActivationEmailTpl` |
| &deactivationEmailTpl | Tpl chunk for deactivation email | `DeactivationEmailTpl` |
| &activationURL | URL to send activated users to | site_url System Setting |
| &deactivationURL | URL to send deactivated users to | site_url System Setting |
| &sitename | site name to use in message | site_name System Setting |
| &useFullname | Use full name in msg instead of username | `0` |
| &activeSubject | Subject for activation email messages | Registration Approved |
| &activeSender | Email Sender for activation email messages | emailsender System Setting |
| &activeFrom | Email From address for activation email messages | emailsender System Setting |
| &activeFromName | Email From Name for activation email messages | site_name System Setting |
| &activeReplyTo | Reply To address for activation email messages | emailsender System Setting |
| &deActiveSubject | Subject for deactivation email messages | Status Changed to Inactive |
| &deActiveSender | Email Sender for deactivation email messages | emailsender System Setting |
| &deActiveFrom | Email From address for deactivation email messages | emailsender System Setting |
| &deActiveFromName | Email From Name for deactivation email messages | site_name System Setting |
| &deActiveReplyTo | Reply To address for deactivation email messages | emailsender System Setting |