Closed (won't fix)
Project:
Mailchimp
Version:
6.x-1.1
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2009 at 22:11 UTC
Updated:
28 Jun 2016 at 16:28 UTC
Jump to comment: Most recent
Comments
Comment #1
archimedes commentedSeconded. I'd love to see preferred email format as well.
Comment #2
levelos commentedThis cannot be implemented as a merge variable since email format is not an avaialble merge variable from MailChimp. It's a separate parameter, which would have to be added to all subscription fields, assuming an admin wants it as an option. So we can leave in the queue as I imagine that could be useful, but it would be an additional setting and a new field added with each subscription form.
Comment #3
merzikain commentedJust add a new option to the admin settings for Preferred Format just like the Interest Groups option.
Then update the _mailchimp_subscribe_user function, adding an argument at the end for $email_pref = 'html'. Also change the following two lines in that same function.
After that it's just a matter of passing through the value of $email_pref in the functions that call _mailchimp_subscribe_user.
For my uses I just needed to add the option to choose format. The other options provided by the module were unnecessary since there will be no registered users who are not administrators.
That should be a good enough start on adding this functionality to the module though. Maybe later when I finish with what I'm doing I'll look at fully integrating what I did and submit it here for approval.
Oh, forgot to share the function for adding the element to forms.
Comment #4
nrackleff commented“And now our watch [for support of the 6.x version of the MailChimp module] has ended…” With the end of Drupal 6 support, I’m sad to say we too must turn the page.
Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. “What is dead may never die, but rises again, harder and stronger!”