/** * Subscribe the provided email to a list. By default this sends a confirmation email - you will not see new members until the link contained in it is clicked! * * listSubscribe(string apikey, string id, string email_address, array merge_vars, string email_type, bool double_optin, bool update_existing, bool replace_interests, bool send_welcome) * http://apidocs.mailchimp.com/api/1.3/listsubscribe.func.php * * @todo im Moment sind nur die ersten 2 parameter implementiert * @param emailType text|html|mobile * @return bool success */ public function listSubscribe($listId, $email, array $mergeVars = NULL, $emailType = 'text', $doubleOptin = true, $updateExisting = false, $replaceInterests = true, $sendWelcome = true) { $response = $this->dispatch(__FUNCTION__, array('id' => $listId, 'email_address' => $email, 'email_type' => $emailType)); // boolean if ($response->getRaw() === 'true') { return TRUE; } else { throw Exception::unknown($response->getRaw()); } }