All 24 Email Delivery answers

See every answer

Answer

Can I set the mail settings in wp-config.php?

Updated Email Delivery 1.7.0Tested with WordPress 7.1

Yes. Define TRML_HOST, TRML_PORT, TRML_ENCRYPTION, TRML_USERNAME, TRML_PASSWORD, TRML_FROM_EMAIL, TRML_FROM_NAME or TRML_PROVIDER in wp-config.php and that value is used for the site, whatever the Settings screen says. The screen shows each of those fields greyed, saying Set in wp-config.php, and the password box stays empty: a password set there is never shown or stored. Saving the screen, or importing a settings file, does not change them. Take a constant out and the screen's own value is used again.

The test, the daily sign-in check and the commands all use them. On a network they apply to every site, and a must-use plugin can give one site its own through the trml_constant_values filter. The documentation has the whole list, with what each one takes.

Still stuck? Ask the developers who wrote it. We aim to reply within one business day.

Email Delivery

Send your site's email through a real mail service, and see what happened to every message.

From $19 a year · every feature · 30-day refund

Buy Email DeliverySee the plugin

The Send a test screen of Email Delivery in WordPress admin. A red box reads It did not go. SMTP Error: Could not authenticate. Below, a panel headed What the mail server said, noting it is safe to paste into a support request, shows the full conversation with smtp.sendgrid.net, the sign-in lines replaced by [credentials hidden], ending in 535 Authentication failed: The provided authorization grant is invalid, expired, or revoked.