Email marketing and messaging system for Humano applications
idoneo/humano-mailer is a Laravel package for email marketing and messaging system for humano applications.
It currently has 0 GitHub stars and 8 downloads on Packagist (latest version v0.1.3).
Install it with composer require idoneo/humano-mailer.
Discover more Laravel packages by idoneo
or browse all Laravel packages to compare alternatives.
Last updated
A comprehensive email marketing and messaging system for Laravel applications, designed specifically for the Humano ecosystem.
Install the package via Composer:
composer require idoneo/humano-mailer
Publish and run the migrations:
php artisan vendor:publish --tag="humano-mailer-migrations"
php artisan migrate
Optionally, publish the config file:
php artisan vendor:publish --tag="humano-mailer-config"
The package automatically registers the "Mailer" module in your application. Configure your email providers in the .env file:
MAIL_MAILER=smtp
MAIL_HOST=your-smtp-host
MAIL_PORT=587
MAIL_USERNAME=your-username
MAIL_PASSWORD=your-password
MAIL_ENCRYPTION=tls
For external email service providers, use these simplified variables:
# Generic API configuration - works with any email service
MAIL_API_KEY=your-api-key-here
MAIL_API_DOMAIN=your-domain.com # Optional, only if your provider needs it
# Examples:
# For MailBaby: MAIL_API_KEY=your-mailbaby-api-key
# For Mailgun: MAIL_API_KEY=your-mailgun-secret-key and MAIL_API_DOMAIN=your-domain.mailgun.org
# For SendGrid: MAIL_API_KEY=your-sendgrid-api-key
The package will automatically detect if you have an API key configured and enable API-based sending.
Messages can be created through the web interface or programmatically:
use Idoneo\HumanoMailer\Models\Message;
$message = Message::create([
'name' => 'Welcome Campaign',
'type_id' => 1,
'template_id' => 1,
'text' => 'Welcome to our platform!',
'status_id' => 1,
'team_id' => auth()->user()->currentTeam->id,
]);
Campaigns can be started through the web interface or API:
$message = Message::find(1);
$message->update([
'status_id' => 1, // Active
'started_at' => now(),
]);
The package provides comprehensive tracking:
The main campaign model with relationships to:
MessageType: Campaign type (newsletter, promotional, etc.)Category: Target contact categoryTemplate: Email template for HTML contentMessageDelivery: Individual email deliveriesIndividual email delivery records with:
Campaign types for categorizing messages.
The package registers the following routes:
GET /message/list - List all messagesGET /message/create - Create new message formGET /message/{id} - View message detailsPOST /message/{id}/start - Start campaignPOST /message/{id}/pause - Pause campaignPOST /message/{id}/test - Send test emailThe package is designed for multi-tenant applications:
spatie/laravel-package-tools: Package development toolsyajra/laravel-datatables-oracle: DataTables integrationguzzlehttp/guzzle: HTTP client for API callstijsverkoyen/css-to-inline-styles: Email CSS processingThis package is licensed under the GNU AGPLv3.
For support and documentation, visit the Humano documentation or contact [email protected].