#!/usr/bin/env python3

import subprocess
import json
import os

# Read the HTML content
with open('/root/.openclaw/workspace/yaniv-email-final.html', 'r') as f:
    html_content = f.read()

# Use the message tool to send a properly formatted email
# This should work better than the complex Gmail API approach

draft_message = f"""**PROPERLY FORMATTED YANIV EMAIL DRAFT**

To: assaf@curiousendeavor.com
Subject: DRAFT: Yaniv Response - Clean Format

{html_content}

---

**EMAIL DETAILS:**
- **To:** yaniv@isac-law.com  
- **CC:** assafdagancos@gmail.com, hadar@curiousendeavor.com, maypa@etoro.com, yannaypo@etoro.com, ellais@etoro.com, hilash@etoro.com, shaychi@etoro.com, Nirsm@etoro.com, sherryro@etoro.com
- **Subject:** RE: פתיחת ספק- curious endeavor
- **Attachment:** eToro SOW Updated (March 8, 2026).pdf

**PDF Location:** /root/.openclaw/workspace/public/etoro/etoro-sow-20260308-2200.pdf

Ready to send once approved."""

print(draft_message)