用于将电子邮件连接集成到网站的 WordPress 插件
A WordPress plugin scaffold by FOSSASIA to integrate email connectivity into sites and other WPFA plugins.
It ships with a standard, maintainable structure (admin/, includes/, public/, languages/) and an uninstall routine, ready for adding SMTP/API providers, settings screens, and helper functions.
Licensed under Apache-2.0.
Current stable release: 1.0.0.
Current repository status: minimal plugin skeleton prepared for adding mail connectivity features.
What’s included out of the box:
wpfa-mailconnect.php)uninstall.php stub to keep data cleanup explicitNote: Provider integrations (SMTP/API), settings pages, and email helpers can be implemented inside the existing structure.
From your WordPress root:
cd wp-content/plugins
git clone https://github.com/fossasia/wpfa-mailconnect.gitGo to Plugins in the WP admin and activate WPFA MailConnect.
Once features are implemented, a settings page (e.g. under Settings → WPFA MailConnect) can expose:
The repository already contains
admin/for an options page scaffold. Hook your settings there.
wpfa-mailconnect/
├─ admin/ # Admin screens, settings, assets
├─ includes/ # Core classes, loaders, helpers
├─ languages/ # .po/.mo translation files
├─ public/ # Public-facing hooks/assets
├─ index.php
├─ uninstall.php # Cleanup stub
└─ wpfa-mailconnect.php # Main plugin bootstrapThis layout follows common WordPress plugin practices and matches the current repository contents.
wpfa-mailconnectlanguages/. Add/update .po/.mo files as usual.The repository includes uninstall.php. Extend it to remove plugin options and custom data on uninstall to keep sites clean.
includes/ (e.g., loaders, mail adapters).admin/ (settings API, capability checks).public/ (should you expose shortcodes or public forms).wpfa-mailconnect.php (activation/deactivation, loaders).Suggested next tasks:
MailAdapterInterface and concrete adapters (SMTP, provider APIs)esc_html, esc_attr, wp_kses) and sanitize input (sanitize_text_field, etc.)wpfa_mailconnect_ or WPFA_MailConnect_ to avoid collisionsContributions are welcome! Please:
Apache License 2.0. See LICENSE.txt.
暂无开放 Issues,或尚未同步最近议题。