/** * Add a recipient to an existing email list. * * @param Zend_Gdata_Gapps $gapps The service object to use for communicating with the * Google Apps server. * @param boolean $html True if output should be formatted for display in a * web browser. * @param string $recipientAddress The address of the recipient who should be added. * @param string $emailList The name of the email address the recipient be added to. * @return void */ function addRecipientToEmailList($gapps, $html, $recipientAddress, $emailList) { if ($html) { echo "<h2>Subscribe Recipient</h2>\n"; } $gapps->addRecipientToEmailList($recipientAddress, $emailList); if ($html) { echo "<p>Done.</p>\n"; } }