=== SMTP Debug Test === Testing with improved error logging... === RESULT === { "success": false, "error": "STARTTLS command failed - Expected: 220, Got: 250, Response: 250-STARTTLS", "debug": [ "Starting email send to: test@example.com", "SMTP Host: smtp.zoho.com:587", "Attempting SMTP connection...", "Socket connection established", "Initial connection - Response: 220 220 mx.zohomail.com SMTP Server ready September 11, 2025 2:07:53 PM PDT", "EHLO command - Command sent: EHLO smtp.zoho.com", "EHLO command - Response: 250 250-mx.zohomail.com Hello smtp.zoho.com (static.238.75.180.157.clients.your-server.de (157.180.75.238))", "Starting TLS encryption...", "STARTTLS command - Command sent: STARTTLS", "STARTTLS command - Response: 250 250-STARTTLS", "ERROR: STARTTLS command failed - Expected: 220, Got: 250, Response: 250-STARTTLS" ] } === DEBUG LOG === - Starting email send to: test@example.com - SMTP Host: smtp.zoho.com:587 - Attempting SMTP connection... - Socket connection established - Initial connection - Response: 220 220 mx.zohomail.com SMTP Server ready September 11, 2025 2:07:53 PM PDT - EHLO command - Command sent: EHLO smtp.zoho.com - EHLO command - Response: 250 250-mx.zohomail.com Hello smtp.zoho.com (static.238.75.180.157.clients.your-server.de (157.180.75.238)) - Starting TLS encryption... - STARTTLS command - Command sent: STARTTLS - STARTTLS command - Response: 250 250-STARTTLS - ERROR: STARTTLS command failed - Expected: 220, Got: 250, Response: 250-STARTTLS === CHECKING EMAIL LOG === Last email log entry: { "timestamp": "2025-09-11 21:07:53", "to": "test@example.com", "subject": "Your CmdSharp License Key - Download & Start Creating Invoices!", "status": "failed_smtp", "ip": "216.73.216.116", "details": { "0": "Starting email send to: test@example.com", "1": "SMTP Host: smtp.zoho.com:587", "2": "Attempting SMTP connection...", "3": "Socket connection established", "4": "Initial connection - Response: 220 220 mx.zohomail.com SMTP Server ready September 11, 2025 2:07:53 PM PDT", "5": "EHLO command - Command sent: EHLO smtp.zoho.com", "6": "EHLO command - Response: 250 250-mx.zohomail.com Hello smtp.zoho.com (static.238.75.180.157.clients.your-server.de (157.180.75.238))", "7": "Starting TLS encryption...", "8": "STARTTLS command - Command sent: STARTTLS", "9": "STARTTLS command - Response: 250 250-STARTTLS", "10": "ERROR: STARTTLS command failed - Expected: 220, Got: 250, Response: 250-STARTTLS", "error": "STARTTLS command failed - Expected: 220, Got: 250, Response: 250-STARTTLS" } }