---
title: "Get SMTP Settings Ability: Read Email Configuration in WordPress"
url: https://nexterwp.com/docs/nexter-get-smtp-settings/
date: 2026-05-29
modified: 2026-05-29
author: "sandip patel"
description: "The nexter/get-smtp-settings ability reads the current SMTP email configuration from Nexter Extension, returning connection type, server details, and sender info with sensitive values masked."
word_count: 214
---

# Get SMTP Settings Ability: Read Email Configuration in WordPress

## Key Takeaways

- nexter/get-smtp-settings ability reads current SMTP email configuration from Nexter Extension, returning connection type, server host, port, encryption method, and sender details.
- Sensitive values such as passwords are masked in the response, ensuring credentials are not exposed during audits or displays of email settings.
- nexter/update-smtp-settings allows modification of SMTP configuration, while nexter/get-smtp-settings remains read-only and does not change any settings.

The **nexter/get-smtp-settings** ability reads the current SMTP email configuration from Nexter Extension. It returns the connection type, server host and port, encryption method, and sender details. Sensitive values such as passwords are masked in the response. Use this ability to audit or display current email delivery settings without exposing credentials.

## Key Takeaways

This ability takes no input parameters.

Passwords and authentication credentials are masked in the returned data.

It returns both Gmail and custom SMTP configuration data depending on the type setting.

This ability is read-only. It never changes any email settings.

Use nexter/update-smtp-settings to modify SMTP configuration.

## 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.

## What It Returns

The ability returns an SMTP settings object. Fields include: **enabled** (boolean), **type** (gmail or custom), **from_name**, **from_email**, **host**, **port** (25, 465, or 587), **encryption** (tls, ssl, or none), **auto_tls** (boolean), **auth** (boolean), **username**, and **password** (masked).

## When to Use This Ability

Verify current SMTP configuration before updating settings via nexter/update-smtp-settings.

Check whether SMTP is enabled and which type is active on a site.

Display current email sender info in an admin dashboard without revealing the password.

## Related Documentation

Update SMTP Settings Ability: nexter/update-smtp-settings

Get Security Settings Ability: nexter/get-security-settings

Get Performance Settings Ability: nexter/get-performance-settings