Skip to content

Add Import/Export Connections feature (#369) - #410

Open
ikamal7 wants to merge 2 commits into
WPManageNinja:masterfrom
ikamal7:feature/issue-369-import-export-connections
Open

ikamal7 wants to merge 2 commits into
WPManageNinja:masterfrom
ikamal7:feature/issue-369-import-export-connections

Conversation

@ikamal7

@ikamal7 ikamal7 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

This PR adds the ability to import and export mail connections as JSON, making it easy to transfer FluentSMTP configuration between sites.

Changes

PHP Backend:

  • Added GET settings/export-connections endpoint — Exports all connections + mappings as JSON with metadata (version, date, source URL)
  • Added POST settings/import-connections endpoint — Accepts JSON file, validates providers exist, merges or replaces into existing settings

Vue Frontend:

  • Export button in connections header — Downloads fluent-smtp-connections-{sitename}.json
  • Import dialog with file picker, preview of connections, and merge/replace mode selector

How to test

  1. Go to Settings → Email Connections
  2. Click Export to download your connections as JSON
  3. Click Import to upload a JSON file from another installation
  4. Choose between Merge (add/overwrite individual connections) or Replace (replace all existing connections)

@techjewel please review

ikamal7 added 2 commits July 21, 2026 21:40
- Add PHP backend endpoints for exporting/importing mail connections
  as JSON (SettingsController@exportConnections, @importConnections)
- Add Vue frontend UI: Export button, Import dialog with file picker,
  preview of connections, merge/replace mode selector
- Connections are exported with metadata (version, date, source URL)
- Import validates provider availability and supports merge/replace modes
@ikamal7
ikamal7 marked this pull request as ready for review July 21, 2026 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant