Update SMTP Settings Ability: Configure Email Delivery in WordPress

Key Takeaways

  • nexter/update-smtp-settings ability updates SMTP email configuration in Nexter Extension.
  • Parameters such as enabled, type, from_name, and host are optional and only the fields passed are saved.
  • nexter/get-smtp-settings retrieves current SMTP values before making updates, ensuring secure password storage.
Table of Contents

The nexter/update-smtp-settings ability updates the SMTP email configuration in Nexter Extension. You can enable or disable SMTP, switch between Gmail and custom SMTP, and configure the server host, port, encryption, and sender details. Only the fields you pass are updated.

Key Takeaways

All parameters are optional. Only the fields you pass are saved.

Passwords are stored securely and will be masked when read back via nexter/get-smtp-settings.

Use nexter/get-smtp-settings to read current values before making partial updates.

Required Setup

This ability ships with Nexter Extension (Free). If you do not have it installed, follow the guide on how to install and activate Nexter Extension first.

Parameters

**enabled** (boolean, optional) turns SMTP delivery on or off.

**type** (string, optional) sets the SMTP connection type. Options: gmail, custom.

**from_name** (string, optional) sets the sender display name used in outgoing emails.

**from_email** (string, optional) sets the sender email address.

**host** (string, optional) is the SMTP server hostname.

**port** (integer, optional) is the SMTP port number. Options: 25, 465, 587.

**encryption** (string, optional) sets the security protocol. Options: tls, ssl, none.

**auto_tls** (boolean, optional) enables automatic TLS upgrade when supported by the server.

**auth** (boolean, optional) enables SMTP authentication.

**username** (string, optional) is the SMTP authentication username.

**password** (string, optional) is the SMTP authentication password. Stored securely and masked when read back.

What It Returns

The ability returns success (boolean) and the updated settings object reflecting the new SMTP configuration, with the password field masked.

When to Use This Ability

Configure SMTP on a newly provisioned site as part of an automated setup workflow.

Update the from_name or from_email without changing server credentials.

Switch from custom SMTP to Gmail OAuth after migrating a site to a new email provider.

Related Documentation

Get SMTP Settings Ability: nexter/get-smtp-settings

Update Security Settings Ability: nexter/update-security-settings

Update Performance Settings Ability: nexter/update-performance-settings

About the Author

sandip patel

WordPress Developer at POSIMYTH Innovations I am a passionate WordPress Developer at POSIMYTH Innovations, where I focus on building high-performance products and cutting-edge web experiences. Currently, I contribute to the development of major projects including The Plus Addons for Elementor, Sticky Header for Elementor, RankReady AI (LLM & SEO), and the SproutOS MCP server integration. I love bridging the gap between WordPress core functionality and modern AI capabilities. Beyond standard development.

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!