https://github.com/matthiasschobner/schobnerswiftmailerdblogbundle
Persist email sendet with SwiftMailer to database.
https://github.com/matthiasschobner/schobnerswiftmailerdblogbundle
doctrine swiftmailer symfony-bundle symfony3
Last synced: 4 months ago
JSON representation
Persist email sendet with SwiftMailer to database.
- Host: GitHub
- URL: https://github.com/matthiasschobner/schobnerswiftmailerdblogbundle
- Owner: matthiasschobner
- License: mit
- Created: 2019-10-07T09:45:59.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T04:03:05.000Z (almost 3 years ago)
- Last Synced: 2025-06-03T04:47:32.026Z (5 months ago)
- Topics: doctrine, swiftmailer, symfony-bundle, symfony3
- Language: PHP
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SchobnerSwiftMailerDBLogBundle
Persist email sendet with SwiftMailer to database.
# (This is a early alpha Version. Don't use it productive)
# Install:
```composer require schobner/swift-mailer-db-log```
### Config:
app/AppKernel.php anpassen:
```
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Schobner\SwiftMailerDBLogBundle\SchobnerSwiftMailerDBLogBundle(),
];
```
Set config:
```
schobner_swift_mailer_db_log:
email_log_entity: AppBundle\Entity\EmailLog
```
### Extend class:
All db settings will be automatically set
```
namespace AppBundle\Entity;
use Schobner\SwiftMailerDBLogBundle\Model\EmailLog as BaseEmailLog;
/**
* @ORM\Entity()
* @ORM\Table(name="swift_mailer_log")
*/
class EmailLog extends BaseEmailLog
{
// ... add your logic if required ...
}
```