2025-08-14 09:36:55 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
# Manual SMTP test with corrected JSON
|
|
|
|
|
|
|
|
|
|
echo "Testing SMTP with corrected JSON..."
|
|
|
|
|
|
|
|
|
|
# Simple test without timestamp embedding
|
2025-09-07 21:25:25 +02:00
|
|
|
curl -X POST http://127.0.0.1:7811/v1/mail/send \
|
2025-08-14 09:36:55 +02:00
|
|
|
-H "Content-Type: application/json" \
|
|
|
|
|
-d '{
|
|
|
|
|
"name": "Furt Test User",
|
2025-09-07 21:25:25 +02:00
|
|
|
"email": "admin@example.com",
|
2025-08-14 09:36:55 +02:00
|
|
|
"subject": "Furt SMTP Test Success!",
|
|
|
|
|
"message": "This is a test email from Furt Lua HTTP-Server. SMTP Integration working!"
|
|
|
|
|
}'
|
|
|
|
|
|
|
|
|
|
echo ""
|
|
|
|
|
echo "Check response above for success:true"
|
|
|
|
|
|