SENDL WORDPRESS PLUGIN
======================

What this build includes
------------------------
- WooCommerce order search by order number, name, or email
- Live email preview based on your old Tubeline flow
- Native WordPress HTML email sending via wp_mail()
- Test email sender in settings
- Branding settings including logo and app icon from the WordPress media library
- Magic link generator for the mobile sender page
- YouTube OAuth connection settings
- Direct YouTube video upload to the connected channel
- Frontend sender page at /sendl-sender/

Important setup notes
---------------------
1. Activate the plugin.
2. Visit Settings > Permalinks and click Save once so the /sendl-sender/ route works.
3. In Sendl settings, choose your logo and app icon from the media library if desired.
4. Set From Name / From Email / Reply-To.
5. Send a test email from the settings panel.

YouTube setup
-------------
1. In Google Cloud, create an OAuth client for a Web application.
2. Add this redirect URI exactly as shown in the plugin settings:
   https://your-site.com/sendl-youtube-callback/
3. Paste the Client ID and Client Secret into Sendl.
4. Click Connect YouTube.
5. Upload a video in the YouTube panel.

Notes
-----
- The YouTube upload flow in this build uses direct multipart upload.
- Very large video files may require a resumable upload implementation later.
- Delivery still depends on your site mail configuration even though the plugin uses wp_mail().
