Home / Admin / Defining Amazon SES Constants
Duplicate Snippet

Embed Snippet on Your Site

Defining Amazon SES Constants

This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area by setting up constants.

To get started, you’ll need to open your site’s wp-config.php file. Look for the line that reads:
/* That's all, stop editing! Happy publishing. */

Be sure to add any new code above this line.

Code Preview
/* Defining  Amazon SES Constants  
 * Original doc: https://wpmailsmtp.com/docs/how-to-secure-smtp-settings-by-using-constants/
define( 'WPMS_MAILER', 'amazonses' );
define( 'WPMS_AMAZONSES_REGION', '' ); // Possible values for region: 'us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-west-1', 'eu-west-2', 'eu-west-3', 'eu-central-1', 'eu-north-1', 'ap-south-1', 'ap-northeast-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ca-central-1', 'sa-east-1'.


Add a Comment