* Add a new recipient to the overall DMdelivery database. Required credentials: 'insert' privilege for area 'Overall recipients' * @param login: DMdelivery login object. * @param campaignIDs: An array of overall campaigns (database IDs) to make the recipients a member of. Provide at least one campaign. * @param groupIDs: An array of groups (database IDs) to make the recipient a member of. * The groups here need to be present in all campaigns the recipient becomes a member of! * Provide at least one group. If this array *only* contains the ID of the Opt-in group (60), the * opt-in confirmation email will be sent to the recipient. * @param recipientData: An associative array (key: name of field, value: value of field) containing recipient data. * @param overwrite: In case the recipient already exists, whether or not to overwrite the * known recipient data with the new data provided. If set to 'false', and the recipient to be * added turns out to be duplicate, then the recipient will not be added to the given campaigns and groups! * @returns: The database ID of the newly created recipient. */ if (!$campaignexists) { try { $result3 = $client->addOverallRecipient($login, array($campaign), array($group), $recipient, 1); } catch (SoapFault $exception) { if ($debug) { error_log($exception->getMessage(), 0); } mail('*****@*****.**', 'eonieuwsbrief addOverallRecipient Soap Error', $exception->getMessage()); } if ($debug) { error_log("missing", 0); } } else { if ($resendconfirmmail) { try { //$result3 = $client->addOverallRecipient($login, array($campaign), array($group), $recipient, 1); } catch (SoapFault $exception) { error_log($exception->getMessage(), 0);