=== YayMagic Email Builder ===
Contributors: YayCommerce
Tags: email builder, wordpress emails, drag and drop, email templates, email customizer
Requires at least: 5.9
Requires PHP: 7.2
Tested up to: 7.1
Stable tag: 1.0.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A drag-and-drop email builder for customizing WordPress core emails, no code required.

== Description ==

WordPress sends plain, unbranded emails by default.

**Email Builder** lets you redesign these emails visually, with a drag-and-drop editor, ready-made elements, and a live preview, without writing any code.

Everything in this plugin is fully functional. There are no locked elements, trial periods, usage limits, or license keys.

== Features ==

- **Drag & Drop Editor**: Build and rearrange email content on a visual canvas
- **Element Library**: Logo, Email Heading, Title, Text, Text List, Button, Image, Image Box, Image List, Video, Divider, Space, Column Layouts, Social Icons, Rating Stars, HTML, Hook, Footer
- **Patterns**: Insert ready-made section patterns (headers, footers, banners, and more) with one click
- **Global Header & Footer**: Set a shared header and footer used across all emails
- **Dynamic Shortcodes**: Insert user and site data automatically
- **Live Preview & Test Email**: Preview an email and send a test before saving
- **Import/Export**: Move templates between sites as JSON
- **Revisions & Backups**: Restore earlier versions of a template
- **Supports Core WordPress Emails**: New account and reset password emails

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/yaymagic-email-builder/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Navigate to Email Builder in your WordPress admin to configure settings

== Frequently Asked Questions ==

**Which emails can I customize?**
Core WordPress emails, including the new account and reset password emails.

**Is coding knowledge required?**
No, all customization is done through the visual drag-and-drop editor.

**Can I translate the plugin?**
Yes. All strings use the `yaymagic-email-builder` text domain and can be translated on translate.wordpress.org.

**Does the plugin send any data to external servers?**
No. All email rendering, previews, and social icon images are generated locally on your site. See "External Services" below for the only outbound connections, which are optional admin actions.

== External Services ==

This plugin does not phone home, collect telemetry, or check license keys. The only outbound connections are:

**WordPress.org Plugin API** (`api.wordpress.org`, `downloads.wordpress.org`)
Used only when an administrator clicks an install button on the "Recommended Plugins" page or the "Install YaySMTP" button in the Send Test Email dialog. It fetches plugin information and the plugin package from WordPress.org, exactly like the core Plugins > Add New screen. Nothing is sent except the standard request WordPress itself makes.
Privacy Policy: https://wordpress.org/about/privacy/

**YayCommerce website** (`yaycommerce.com`)
Support links only. The "Help" menu item opens https://yaycommerce.com/support/ in your browser. The plugin itself never sends data to this domain.
Privacy Policy: https://yaycommerce.com/privacy-policy/
Terms: https://yaycommerce.com/terms-and-conditions/

== Source Code ==

The complete, human-readable source of this plugin, including the uncompiled source of the editor bundle and the build tooling, is public at:

https://github.com/YayCommerce/email-builder

The compiled files under `assets/dist/yaymail/` (`yaymail-main.tsx-*.js`, `vendor_antd_*.js`, `yaymail-main-*.css`) are built from the React/TypeScript application in `apps/customizer/src` with Vite. To rebuild them:

1. `cd apps/customizer`
2. `pnpm install`
3. `pnpm build` (runs `tsc && vite build`; output is written to `assets/dist/yaymail/`)
4. `cd ../..` then `node rewrite-text-domain.js assets` (the editor source is shared with the YayMail plugin and uses the `yaymail` text domain; this rewrites the compiled bundle to this plugin's slug, exactly as the release script `zip.sh` does)

Third-party libraries compiled into that bundle (all under MIT-compatible licenses, declared in `package.json` / `apps/customizer/package.json`): React, React DOM, React Router, Ant Design (`antd`, `@ant-design/icons`), `@wordpress/i18n`, Zustand, Immer, react-query, Axios, Day.js, Moment.js, SortableJS / react-sortablejs, Ace editor (`ace-builds`, `react-ace`), react-custom-scrollbars-2, react-error-boundary, JSZip, lodash.get, copy-to-clipboard, uuid.

The PHP code under `vendor-prefixed/` is the YayCommerce admin-shell library (shared admin menu and pages). It is plain, unminified PHP that has only had its namespaces prefixed with PHP-Scoper (`scoper.inc.php`) to avoid conflicts with other plugins; the same files are in the repository above.

== Support ==

For documentation and support, visit https://yaycommerce.com or [contact the YayCommerce support team](https://yaycommerce.com/support/).

== Changelog ==

= Sept 24, 2026 - Version 1.0.2 =
- Initial release
- Added global headers and footers
- Added dynamic shortcodes for user and site data
- Added live preview and test emails
- Added JSON import/export for templates
- Added template revisions and backups
- Added support for core WordPress emails, including new account and reset password emails