- Backend: FastAPI app with all models, services, schemas, routes - Admin Panel: Next.js dashboard with all modules (CRM, POS, repairs, warranties, billing, notifications, etc.) - Ecommerce: storefront (submodule) + product catalog - AI Agents: .agents/ skill library for Antigravity IDE - Docs: architecture, billing, notification gateway markdown - Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
25 lines
886 B
Python
25 lines
886 B
Python
import httpx
|
|
|
|
api_key = "PHtE6r0PQujsjDQnoBYH4aLsH8H3Z458+rtjKwcVuYcQWfVVF00G+d5+xzTl/UsqB/QTFPXPmolptuzP5bqHLW7pMWwfCGqyqK3sx/VYSPOZsbq6x00Zsl8dcEzdV4TtddNq0CDfv97TNA=="
|
|
endpoint = "https://cpaas.zoho.in/v1.1/email"
|
|
recipient = "adithiyan.elan@gmail.com"
|
|
|
|
headers = {
|
|
"Authorization": f"Zoho-enczapikey {api_key}",
|
|
"Content-Type": "application/json"
|
|
}
|
|
|
|
payload = {
|
|
"from": {"address": "info@trionixsolution.com", "name": "iFixKart Suite"},
|
|
"to": [{"email_address": {"address": recipient}}],
|
|
"subject": "Test Email",
|
|
"htmlbody": "<div>This is a test email.</div>"
|
|
}
|
|
|
|
try:
|
|
with httpx.Client(timeout=8.0) as client:
|
|
res = client.post(endpoint, json=payload, headers=headers)
|
|
print("Status code:", res.status_code)
|
|
print("Response text:", res.text)
|
|
except Exception as ex:
|
|
print("Exception thrown:", type(ex).__name__, "-", str(ex))
|