ifixkart-backend/test_zeptomail.py
adithiyan 10bfba7d58 feat: add warranties, refunds, notifications, CRM calendar, system config & delivery modules
- New models: WarrantyModel, WalletModel, SystemConfigModel
- New schemas: WarrantySchema, RefundSchema, SystemConfig, CrmTaskCalendar, NotificationTemplate, NotificationGateway, RepairErp, ReviewModeration, InventoryPos, MultiDashboard, BillingFinance
- New services: WarrantyService, RefundService, CrmService, CrmTaskCalendarService, DeliveryService, EmailTemplateService, InventoryPosService, MultiDashboardService, NotificationGatewayService, RepairErpService, ReviewModerationService, SystemConfigService, TemplateService, CreditService
- Updated routers: AdminOrder, BillingFinance, Cart, Catalog, Checkout, Crm, InventoryPos, NotificationGateway, RolePermission, ServiceJob, Settings, Storefront, UserCreation
- Updated models: Inventory, Notification, Order, Product, Service, Setting, SystemConfig, User
- Updated core: database init, invoice generator, main app
- Added WarrantyRouter with full CRUD and claim flow
2026-10-13 22:05:16 +05:30

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))