Download the PHP package sendery/symfony without Composer
On this page you can find all versions of the php package sendery/symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package symfony
Sendery for Symfony
Send Sendery templates through Symfony Mailer.
Documentation · API reference · Changelog
Requirements
Symfony Mailer 7.4 and PHP 8.3+ with the cURL extension.
Install
Register the transport
Create a project API key and register the transport in config/services.yaml.
Set the API key
Set MAILER_DSN in .env.local or your hosting provider’s secret settings.
Configure Mailer
Use the DSN in your existing Mailer configuration.
Send an email
Pass the recipient, your published template’s key, and its variables to this service. Set from() to your project’s sender address.
Send a specific version
Choose a published template version to keep sending it after newer versions are published. By default, Sendery uses the latest version.
Attachments
Attach files to TemplateEmail with Symfony’s attach() method.
Send up to 10 files totaling 5 MB. See the attachment reference for supported formats and limits.
Send with Messenger
With Symfony Messenger and your chosen transport installed, set MESSENGER_TRANSPORT_DSN and route mail to async. Run php bin/console messenger:consume async. The same queued TemplateEmail keeps its key and variables on retries.
Handle failures
A failed send throws TransportException. If you use Messenger, retry temporary failures with the same email. Fix API key, template, or billing errors before trying again.
More
Learn how to retry emails without duplicate sends.
License
MIT.
All versions of symfony with dependencies
sendery/php Version ^0.1.4
symfony/mailer Version ^7.4
symfony/mime Version ^7.4