-
Notifications
You must be signed in to change notification settings - Fork 2
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
Send campaign immediately #24
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When a newsletter page is ready, and the author has presumably sent a test email to themselves, it should be possible to trigger campaign sending.
Add a method to
MailchimpCampaignBackend
namedsend_campaign(campaign_id: str)
. It should call the Mailchimp client'sclient.campaigns.send
method.In the page editor, on the newsletter tab, when the user clicks Send campaign, it should:
save_campaign
method, so that Mailchimp has the latest content.send_campaign
method, to send the campaign.If the API calls are successful, the server should redirect to the page editor, where the "Newsletter" tab will show the campaign sending status.
If the API calls return errors, they should be sent as a message (using the
wagtail.admin.messages
framework).The text was updated successfully, but these errors were encountered: