Email Newsletter Integration (SendPulse)
SendPulse is a multi-channel mailing platform (email, SMS, push, messengers). Integration with the site allows adding subscribers to lists, sending transactional emails via SMTP or API, and launching automatic email sequences.
REST API Connection
// Authorization via OAuth 2.0
$token = Http::post('https://api.sendpulse.com/oauth/access_token', [
'grant_type' => 'client_credentials',
'client_id' => env('SENDPULSE_CLIENT_ID'),
'client_secret' => env('SENDPULSE_CLIENT_SECRET')
])->json()['access_token'];
// Add subscriber to list
Http::withToken($token)
->post("https://api.sendpulse.com/addressbooks/{$listId}/emails", [
'emails' => [[
'email' => $email,
'variables' => ['name' => $name, 'order_count' => 0]
]]
]);
SMTP for Transactional Emails
SendPulse provides an SMTP server for transactional emails. In Laravel — just configure config/mail.php:
'mailers' => [
'sendpulse' => [
'transport' => 'smtp',
'host' => 'smtp-pulse.com',
'port' => 465,
'encryption' => 'ssl',
'username' => env('SENDPULSE_SMTP_LOGIN'),
'password' => env('SENDPULSE_SMTP_PASSWORD'),
],
],
Automation 360
SendPulse Automation 360 allows building visual scenarios: trigger (site event) → email series with conditions. Site event is sent via API:
Http::withToken($token)
->post('https://api.sendpulse.com/flows/run', [
'flow_id' => $flowId,
'contact_id' => $sendpulseContactId,
'external_data' => ['order_id' => $orderId]
]);
Integration timeline: 1 business day for basic integration.







