Download the PHP package datomatic/laravel-hubspot-email-notification-channel without Composer
On this page you can find all versions of the php package datomatic/laravel-hubspot-email-notification-channel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download datomatic/laravel-hubspot-email-notification-channel
More information about datomatic/laravel-hubspot-email-notification-channel
Files in datomatic/laravel-hubspot-email-notification-channel
Package laravel-hubspot-email-notification-channel
Short Description Laravel Channel to save email and notifications on Hubspot Email
License MIT
Homepage https://github.com/datomatic/laravel-hubspot-email-notification-channel
Informations about the package laravel-hubspot-email-notification-channel
Hubspot Email Notifications Channel for Laravel
This package makes it easy to log notifications to Hubspot Email Engagement V3 with Laravel >= 8.x
Contents
- Hubspot Email Notifications Channel for Laravel
- Contents
- Installation
- Setting up the HubspotEmail service
- Usage
- Email notification
- Example
- Notification example
- Model example
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
You can install the package via composer:
Setting up the HubspotEmail service
Generate an API Key
or a Private App from Hubspot.
Important! From November 30th 2022 Hubspot will require you to use only private apps. If you have both API Key and Private App configured, to switch using only Private App just remove HUBSPOT_API_KEY
from your .env file.
Configure your Hubspot API on .env
To publish the config file to config/newsletter.php run:
This will publish a file hubspot.php in your config directory with the following contents:
Usage
You can now use the channel in your via()
method inside the Notification class.
Email notification
Your Notification class must have toMail method. The package accepts: MailMessage lines notifications, MailMessage view notifications and Markdown mail notifications.
Data stored on Hubspot:
- Hubspot Contact Id => The Notifiable Model must have getHubspotContactId(\Illuminate\Notifications\Notification $notification) function
- Send at timestamp
- subject
- mail text (the html of the email or the toHubspotTextMail method of notification)
Example
Notification example
Send text version of html email
An example of use of toHubspotTextMail
method is to send the text version of the email.
Model example
Dynamic Contact Owner
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- Alberto Peripolli
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-hubspot-email-notification-channel with dependencies
illuminate/notifications Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
guzzlehttp/guzzle Version ^7.4