The default option that MODX uses to send email is the PHP Mail function. This option is located within the System Settings for MODX in the MAIL area. In order to change how MODX sends mail, you can activate the SMTP settings in this area. The following article shows how to find and configure the settings for SMTP email in MODX.
Setting up SMTP Email in MODX
- Login to the MODX Administrator.
- Hover over the menu bar at the top of the screen where it is labeled SYSTEM. Click on SYSTEM SETTINGS when the drop-down menu appears.
- Click on the option at the top of the screen that says FILTER BY AREA. Click on MAIL when it appears in the drop-down menu. By default, the mail option in the menu will appear as Mail(13). This identifies the number of settings available in that area. You will see the following:
For more information on changing System Settings, please go to Changing System Settings in Modx.
- To change MODX so that it is using SMTP, go to the last setting (as per the screenshot above). Double-click where it shows "No" and the field will change so that you can change it. Click on it once again, and you will see a drop-down menu where you can select "Yes". Click on YES so that MODX is using SMTP instead of the PHP mail function send email.
- As per the screenshot above, you can see that there are twelve other settings that can be set for SMTP. If you are using SMTP, you will need to obtain your settings from your web host if you are unfamiliar with the settings. If you are hosting with Web Hosting Hub, you can find information about the SMTP settings here: How to find your email settings. Double-click on each setting in the VALUE column in order to change the setting.
Note that as you enter the setting, MODX automatically saves the change for you.
There are variety of options for sending email available in MODX. In order to insure proper delivery of email, make sure that you correctly obtain the configuration settings (values in the MODX System Settings) from your hosting service if you intend to use a SMTP server.