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 # epictravelexpeditions.com — Email Configuration
**Provider:** SendGrid (placeholder — NOT configured) **Provider:** CyberMail by CyberPersons
**Status:** ⚠️ API key not set — emails are silently dropped **Status:** ✅ LIVE — uses orbishosting.com verified domain
**Sending domain:** orbishosting.com
## Current State ## Config File (gitignored)
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
`/home/epictravelexpeditions.com/public_html/api/config.php` `/home/epictravelexpeditions.com/public_html/api/config.php`
```php ```php
define("SENDGRID_API_KEY", "SG.YOUR_KEY_HERE"); // <-- needs real key define("CYBERMAIL_API_KEY", "sk_live_d52bf062797105aeaafac9954c21ff988e9b41b77315807d");
define("MAIL_FROM", "noreply@epictravelexpeditions.com"); define("MAIL_FROM", "noreply@orbishosting.com");
define("MAIL_FROM_NAME", "Epic Travel Expeditions"); define("MAIL_FROM_NAME", "Epic Travel Expeditions");
define("ADMIN_EMAIL", "admin@epictravelexpeditions.com"); define("ADMIN_EMAIL", "admin@epictravelexpeditions.com");
``` ```
## Mailer File ## Mailer File
`/home/epictravelexpeditions.com/public_html/api/includes/mailer.php` `/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 ## Emails Sent
- Contact form submissions → admin - Contact form submissions → admin
- Newsletter signups - Contact confirmation → visitor
+20 -3
View File
@@ -1,4 +1,21 @@
# orbishosting.com — Email Configuration # orbishosting.com — Email Configuration (Shared SMTP Domain)
**Status:** No transactional email configured. **Provider:** CyberMail by CyberPersons
Static marketing site — no forms or email sending found. **Status:** ✅ LIVE — domain verified
**Used as sending domain for:** epictravelexpeditions.com, parkerslingshot, parkerslingshotrentals.com
## API Credentials (use over HTTPS — DO blocks SMTP port 587)
- **API Key:** `sk_live_d52bf062797105aeaafac9954c21ff988e9b41b77315807d`
- **Endpoint:** `POST https://platform.cyberpersons.com/email/v1/send`
- **Auth:** `Authorization: Bearer {api_key}`
- **From:** `noreply@orbishosting.com`
## SMTP Credentials (for non-DO servers)
- **Host:** mail.cyberpersons.com
- **Port:** 587
- **Security:** STARTTLS
- **Username:** `smtp_6ab6cbe01dd919d7`
- **Password:** `BRYog0jWCrI4vMm3AlTwyXXo5MVzvSmU`
## CyberMail Dashboard
- https://platform.cyberpersons.com
+7 -14
View File
@@ -1,19 +1,15 @@
# parkerslingshot.epictravelexpeditions.com — Email Configuration # parkerslingshot.epictravelexpeditions.com — Email Configuration
**Provider:** Mailjet (placeholder — NOT configured) **Provider:** CyberMail by CyberPersons
**Status:** ⚠️ API keys not set — emails are silently dropped **Status:** ✅ LIVE — uses orbishosting.com verified domain
**Sending domain:** orbishosting.com
## Current State ## Config File (gitignored — db.php)
The site uses Mailjet API keys set to placeholder values.
Email sending is disabled until real keys are provided.
## Config File
`/home/epictravelexpeditions.com/parkerslingshot/db.php` `/home/epictravelexpeditions.com/parkerslingshot/db.php`
```php ```php
define("MAILJET_API_KEY", "YOUR_MAILJET_API_KEY"); define("CYBERMAIL_API_KEY", "sk_live_d52bf062797105aeaafac9954c21ff988e9b41b77315807d");
define("MAILJET_SECRET_KEY", "YOUR_MAILJET_SECRET_KEY"); define("MAIL_FROM", "noreply@orbishosting.com");
define("MAIL_FROM", "noreply@parkerslingshotrentals.com");
define("MAIL_FROM_NAME", "Parker County Slingshot Rentals"); define("MAIL_FROM_NAME", "Parker County Slingshot Rentals");
define("ADMIN_EMAIL", "info@parkerslingshotrentals.com"); define("ADMIN_EMAIL", "info@parkerslingshotrentals.com");
``` ```
@@ -21,8 +17,5 @@ define("ADMIN_EMAIL", "info@parkerslingshotrentals.com");
## Emails Sent ## Emails Sent
- Booking confirmation → customer - Booking confirmation → customer
- Booking alert → admin - Booking alert → admin
- Payment declined notice → customer + admin
- Waiver signed confirmation → customer + admin - Waiver signed confirmation → customer + admin
## Note
The `sendEmail()` function uses Mailjet REST API. Could be switched to CyberMail
by replacing the Mailjet endpoint/auth with CyberMail API.
+18 -4
View File
@@ -1,7 +1,21 @@
# parkerslingshotrentals.com — Email Configuration # parkerslingshotrentals.com — Email Configuration
**Provider:** Mailjet (placeholder — NOT configured) **Provider:** CyberMail by CyberPersons
**Status:** ⚠️ API keys not set — emails are silently dropped **Status:** ✅ LIVE — uses orbishosting.com verified domain
**Sending domain:** orbishosting.com
Same email setup as parkerslingshot.epictravelexpeditions.com. ## Config File (in git — db.php)
See that file for details. `/home/parkerslingshotrentals.com/public_html/db.php`
```php
define("CYBERMAIL_API_KEY", "sk_live_d52bf062797105aeaafac9954c21ff988e9b41b77315807d");
define("MAIL_FROM", "noreply@orbishosting.com");
define("MAIL_FROM_NAME", "Parker County Slingshot Rentals");
define("ADMIN_EMAIL", "info@parkerslingshotrentals.com");
```
## Emails Sent
- Booking confirmation → customer
- Booking alert → admin
- Waiver signed confirmation → customer + admin
- Admin manual reminder → customer (from admin panel)