neosrulez / neos-mailgun
A Neos Flow package to easily use the mailgun api
Installs: 301
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:neos-package
Requires
- mailgun/mailgun-php: v3.5.1
- neos/flow: *
- nyholm/psr7: ^1.0
- symfony/http-client: v5.4.3
This package is not auto-updated.
Last update: 2024-11-15 06:58:51 UTC
README
A Neos Flow package to easily use the mailgun api.
Installation
Just run composer require neosrulez/neos-mailgun
Usage
use NeosRulez\Neos\Mailgun\Message; $message = new Message(); $message->setFrom('foo-from@bar.com'); $message->setTo('foo-to@bar.com'); $message->setCc('foo-cc@bar.com'); $message->setBcc('foo-bcc@bar.com'); $message->setSubject('This is the body'); $message->setBody('<strong>This is the body</strong>', 'text/html'); // Desired time of delivery. Note: Messages can be scheduled for a maximum of 3 days in the future. $message->setDeliveryTime("tomorrow 8:00AM"); $message->setAttachments([ '/data/neos/Data/foo.pdf' ]); $message->send();
Configuration
NeosRulez: Neos: Mailgun: apiKey: 'your-mailgun-api-key' domain: 'your-mailgun-domain' # server: 'https://api.eu.mailgun.net' # for EU servers
Author
- E-Mail: mail@patriceckhart.com
- URL: http://www.patriceckhart.com