-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppressions list #29
Conversation
…acht10/laravel-mails into feature/suppressions-list # Conflicts: # src/Models/MailEvent.php
…acht10/laravel-mails into feature/suppressions-list
…acht10/laravel-mails into feature/suppressions-list
…acht10/laravel-mails into feature/suppressions-list # Conflicts: # src/Models/MailEvent.php
9489724
to
6a364f4
Compare
d9231c5
to
55695c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omdat we voor het mailEvent moeten weten met welke driver de mail is verzonden, moeten we bij de mails
opslaan welke driver de mail verzond. Dit mag dus worden opgeslagen in de database (na de uuid
kolom).
Daarnaast moeten we hierbij ook de stream opslaan in de database (voor postmark) zodat we daarmee de unsupress API call kunnen doen. Deze kolom mag dan na de driver kolom.
database/migrations/3_add_unsuppressed_at_to_mail_events.php.stub
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Zie feedback
…acht10/laravel-mails into feature/suppressions-list
@markvaneijk het enige puntje is nu nog het aanmaken van de stream_id in de DB. Die komt neem ik aan van Postmark af.... Hoe moet dat eruit komen te zien? |
d6912ef
to
a37d7ec
Compare
…acht10/laravel-mails into feature/suppressions-list
…acht10/laravel-mails into feature/suppressions-list
This pull request introduces a new feature to handle email unsuppression and includes necessary database schema changes, event handling, and updates to mail driver classes. The most important changes are listed below:
Database Migration
unsuppressed_at
timestamp inmail_events
table anddriver
andstream_id
columns inmails
table.Mail Driver Updates
MailgunDriver
: IntroducedunsuppressEmailAddress
method to handle unsuppression of email addresses using Mailgun API.PostmarkDriver
: IntroducedunsuppressEmailAddress
method to handle unsuppression of email addresses using Postmark API.Event and Listener
MailUnsuppressed
event to trigger when an email address is unsuppressed.UnsuppressEmailAddress
listener to handle theMailUnsuppressed
event and call the appropriate mail driver method.Service Provider
MailsServiceProvider
to register the newMailUnsuppressed
event and its listener, and to include the new migration. [1] [2] [3]