Skip to content
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

Look at better ways to send newsletters #51

Open
dahacouk opened this issue Jun 11, 2015 · 12 comments
Open

Look at better ways to send newsletters #51

dahacouk opened this issue Jun 11, 2015 · 12 comments

Comments

@iAugur
Copy link
Member

iAugur commented Jun 23, 2015

I have reviewed the integration with MailChimp on a branch (kendra-51).
there is a lot to discuss.
_First Steps_

  • Create a Kendra mail chimp account & configure settings
  • Enable the module and link to API key
  • Manage lists: There doesn't appear to be a way of managing the bulk subscription of people from within Drupal, so i recommend exporting from Drupal and importing to MailChimp
  • Consider uninstalling all of the simplenews / newsletter functionality in Drupal
  • Create main newsletter list in MailChimp (attach all users to this list)
  • Create newsletters in MailChimp
  • Create subscribe to newsletter block in Drupal and add to the home page
  • Decide is double opt-in is required (gets a confirmation email - can be customised)
  • Add unsubscribe elements to user profile page

To create and send a newsletter

  • Create the campaign and newsletter in MailChimp and send from there

Mandrill

@iAugur
Copy link
Member

iAugur commented Jun 24, 2015

I have added newsletter subscription details to the user profile page - but ot only shows up once the user data has been updated. So if you simply save a user the form appears. I have set it so that as the user or an admin you can edit the subscription status on the newsletter tab.

@iAugur
Copy link
Member

iAugur commented Jun 29, 2015

Having discussed/tested this we should investigate updating all of the users in Drupal:

  • Add a field to users 'Email Bounced' or some such - default 'false'
  • Programmatically set their subscription status and save the user - this should update mailchimp
  • Batch this to first 1900 users so we can send out an email to them
  • Create a segment in MC - 'First Batch' so we can target them
    Process the soft / hard bounces of this first set
  • Export a list of their email addresses from MC and use this to unsubscribe in MC - this will unsubscribe them in Drupal then also we should set their bounce status in Drupal - this could be done simply by updating them in Drupal and set their status in Drupal to unsubscribe (and investigate why they bounced later) and set them to email bounced = true.
  • Process the next batch and send the email to these (using a new segment - Second batch)
    The result should be that Drupal and MC are in sync with the lists and

@dahacouk
Copy link
Member Author

We also need views where we can:

  • See a list of people who have bounced emails and they are still listed publicly on the website.
  • See a list of people who have unsubscribed and they are still listed publicly on the website.

@dahacouk
Copy link
Member Author

@BBGuy
Copy link
Member

BBGuy commented Jul 2, 2015

OK we have two functions that we can use: mailchimp_subscribe() & mailchimp_unsubscribe()
I can write a wrapper function that takes the user ID and the List ID.
The List ID is available from the mailchimp: list->Settings->List name and Campaign defaults

  • Write and test subscribe function
  • Integrate into a process list job

@BBGuy
Copy link
Member

BBGuy commented Jul 2, 2015

The subscribe finction subscribed the user ok but for old user did not create the needed record in the drupal DB so ended up updating the field programmatically and that worked

@BBGuy
Copy link
Member

BBGuy commented Jul 2, 2015

Pushed new functions to dev

@dahacouk
Copy link
Member Author

Bump! Can we chat about Mandrill? As I want to kill the Google Apps account that currently is SMTP server for all sites.

@andystiller
Copy link
Contributor

I have tested the Mandrill integration on my local machine and committed the changes on the mandrill_mail branch. With a small amount of configuration I was able to successfully send myself a password reset email using mandrill.

@BBGuy
Copy link
Member

BBGuy commented Aug 25, 2015

I have run the mailchimp subscription script and we now have most of the users subscribed:

  • Active users: 3,036
  • Mailchimp subscribed: 3,024
    A few where rejected by mailchimp with:
    An error occurred subscribing [email protected] to list bbdda9b35c. "MailChimp API call to <em class="placeholder">lists/subscribe</em> failed: Internal Server Error: List_RoleEmailMember: [email protected] seems to be a role-based or known invalid email address(es), and cannot be imported. You&#039;ll need subscribe it manually. Why we don&#039;t allow role-based addresses"

@BBGuy
Copy link
Member

BBGuy commented Aug 25, 2015

@dahacouk Review and close if happy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants