{"action":"closed","issue":{"url":"https://api.github.com/repos/DoSomething/mbc-transactional-email/issues/25","labels_url":"https://api.github.com/repos/DoSomething/mbc-transactional-email/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/mbc-transactional-email/issues/25/comments","events_url":"https://api.github.com/repos/DoSomething/mbc-transactional-email/issues/25/events","html_url":"https://github.com/DoSomething/mbc-transactional-email/issues/25","id":115332236,"number":25,"title":"Default to Global template","user":{"login":"DeeZone","id":2119264,"avatar_url":"https://avatars.githubusercontent.com/u/2119264?v=3","gravatar_id":"","url":"https://api.github.com/users/DeeZone","html_url":"https://github.com/DeeZone","followers_url":"https://api.github.com/users/DeeZone/followers","following_url":"https://api.github.com/users/DeeZone/following{/other_user}","gists_url":"https://api.github.com/users/DeeZone/gists{/gist_id}","starred_url":"https://api.github.com/users/DeeZone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DeeZone/subscriptions","organizations_url":"https://api.github.com/users/DeeZone/orgs","repos_url":"https://api.github.com/users/DeeZone/repos","events_url":"https://api.github.com/users/DeeZone/events{/privacy}","received_events_url":"https://api.github.com/users/DeeZone/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"sergii-tkachenko","id":672669,"avatar_url":"https://avatars.githubusercontent.com/u/672669?v=3","gravatar_id":"","url":"https://api.github.com/users/sergii-tkachenko","html_url":"https://github.com/sergii-tkachenko","followers_url":"https://api.github.com/users/sergii-tkachenko/followers","following_url":"https://api.github.com/users/sergii-tkachenko/following{/other_user}","gists_url":"https://api.github.com/users/sergii-tkachenko/gists{/gist_id}","starred_url":"https://api.github.com/users/sergii-tkachenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergii-tkachenko/subscriptions","organizations_url":"https://api.github.com/users/sergii-tkachenko/orgs","repos_url":"https://api.github.com/users/sergii-tkachenko/repos","events_url":"https://api.github.com/users/sergii-tkachenko/events{/privacy}","received_events_url":"https://api.github.com/users/sergii-tkachenko/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-11-05T17:21:50Z","updated_at":"2015-11-24T21:48:53Z","closed_at":"2015-11-24T21:48:53Z","body":"When a request for a transactional email message is sent for a country that's not a DoSomething.org affiliate the default template should be Global rather than the current US template. Example message payload value, note `[email_template] => mb-user-register-IN`:\r\n```\r\n(\r\n    [activity] => user_register\r\n    [email] => dlee+IndiaTest-Production@dosomehting.org\r\n    [uid] => 3257169\r\n    [merge_vars] => Array\r\n        (\r\n            [MEMBER_COUNT] => 4.3 million\r\n            [FNAME] => Dee India\r\n        )\r\n\r\n    [user_country] => IN\r\n    [user_language] => en-global\r\n    [email_template] => mb-user-register-IN\r\n    [mailchimp_list_id] => 8e7844f6dd\r\n    [birthdate] => 929232000\r\n    [subscribed] => 1\r\n    [email_tags] => Array\r\n        (\r\n            [0] => drupal_user_register\r\n        )\r\n\r\n    [activity_timestamp] => 1446746815\r\n    [application_id] => US\r\n)\r\n```\r\n\r\n**Related code**: https://github.com/DoSomething/mbc-transactional-email/blob/master/src/MBC_TransactionalEmail_Consumer.php#L236-L243\r\n\r\n- US Templates: https://us4.admin.mailchimp.com/templates/#f_folder:69;t:template-list\r\n- Global Templates: https://us4.admin.mailchimp.com/templates/#f_folder:97;t:template-list\r\n\r\n- [ ] Adjust default template name from `-US` to `-GL`: https://github.com/DoSomething/mbc-transactional-email/blob/master/src/MBC_TransactionalEmail_Consumer.php#L236-L243\r\n\r\n**Notes**: \r\n- \"GL\" is used for \"global\". `GL` is the country code for Greenland. Should the template names be converted to `-GLOBAL`? Thoughts?\r\n- Templates in MailChimp are \"sent\" to Mandrill for use by the Message Broker system. Content is edited in MailChimp and sent to Mandrill for API requests.\r\n\r\n\r\n\r\n\r\n"}}