aiqedge/smtp-notifications-channel
Laravel notification channel to send emails via the AIQEDGE SMTP API. Configure credentials in .env/services.php, add AiqedgeSmtpChannel to via(), and return message data from toAiqedgeSmtp(). Failed requests are logged via Laravel.
via() or route() methods in notifications..env or config/channel.php setup for API keys/endpoints.mail channel or a dedicated SMTP package (e.g., spatie/laravel-mailables)?Notification::route()).guzzlehttp/guzzle (if AIQEDGE-SMTP uses HTTP API) or php-smtp (if raw SMTP).composer require aiqedge/smtp-notifications-channel..env with AIQEDGE-SMTP credentials (e.g., AIQEDGE_SMTP_API_KEY).php artisan vendor:publish --tag="smtp-channel-config".public function via($notifiable)
{
return ['aiqedge-smtp'];
}
route():
$notifiable->route('aiqedge-smtp', ['to' => 'user@example.com']);
Mockery or Vesper mock)..env/config management to avoid hardcoding credentials.mail channel).route() (e.g., to, cc, subject).spatie/laravel-circuitbreaker) to switch to a backup SMTP if AIQEDGE fails.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| AIQEDGE-SMTP API downtime | Emails undelivered | Queue notifications; retry later. |
| Authentication failure | All emails blocked | Validate credentials in CI/CD. |
| Rate limiting | Emails delayed/rejected | Implement exponential backoff. |
| Package bugs | Corrupted emails | Test with edge cases (attachments, HTML). |
| Laravel cache issues | Channel config ignored | Clear config cache (php artisan cache:clear). |
429 Too Many Requests).How can I help you explore Laravel packages today?