Switch epic/parkerslingshot/PSR to CyberMail API; add orbishosting.com SMTP creds

This commit is contained in:
2026-05-29 14:31:42 +00:00
parent 9aea457588
commit e5016a8df6
4 changed files with 55 additions and 32 deletions
+10 -11
View File
@@ -1,26 +1,25 @@
# epictravelexpeditions.com — Email Configuration
**Provider:** SendGrid (placeholder — NOT configured)
**Status:** ⚠️ API key not set — emails are silently dropped
**Provider:** CyberMail by CyberPersons
**Status:** ✅ LIVE — uses orbishosting.com verified domain
**Sending domain:** orbishosting.com
## Current State
The site uses a SendGrid API key that is set to a placeholder value (`SG.YOUR_KEY_HERE`).
Email sending is disabled until a real key is provided.
## Config File
## Config File (gitignored)
`/home/epictravelexpeditions.com/public_html/api/config.php`
```php
define("SENDGRID_API_KEY", "SG.YOUR_KEY_HERE"); // <-- needs real key
define("MAIL_FROM", "noreply@epictravelexpeditions.com");
define("CYBERMAIL_API_KEY", "sk_live_d52bf062797105aeaafac9954c21ff988e9b41b77315807d");
define("MAIL_FROM", "noreply@orbishosting.com");
define("MAIL_FROM_NAME", "Epic Travel Expeditions");
define("ADMIN_EMAIL", "admin@epictravelexpeditions.com");
```
## Mailer File
`/home/epictravelexpeditions.com/public_html/api/includes/mailer.php`
Uses `sendgridSend()`can be swapped to CyberMail same as other sites.
- `sendgridSend()`now calls CyberMail API (name kept for backward compat)
- `sendContactAlert()` — contact form → admin
- `sendContactConfirmation()` — auto-reply to visitor
## Emails Sent
- Contact form submissions → admin
- Newsletter signups
- Contact confirmation → visitor