Added an example of a working connector.

- mailman specific
- has been tested to work properly for both subscribe, and unsubscribe
- uses node.js
- two stage security
  1) password is specific to connector for recognization
  2) password used by list not kept local
- ssl used for all communication
- yeah!
This commit is contained in:
Jonathan Rosenbaum
2015-02-28 09:54:13 +00:00
parent 39def79d87
commit 6aa95e1ad4
3 changed files with 97 additions and 7 deletions
+5 -5
View File
@@ -49,9 +49,10 @@ $ssl_certificate = SSL_CERTIFICATE;
}
// send data to connector (local or remote)
if (isset($_POST['email_list_connector'])) {
if (isset($_POST['email_list_connector']) == 'subscribe' || isset($_POST['email_list_connector']) == 'unsubscribe' ) {
$json = array(
'subscribe' => $_POST['email_list_connector'],
'password' => $email_list_connector_password,
'email' => $_POST['email'],
'first_name' => $_POST['first_name'],
@@ -73,10 +74,9 @@ $ssl_certificate = SSL_CERTIFICATE;
curl_setopt_array($ch, $curlConfig);
$result = curl_exec($ch);
curl_close($ch);
// just to test
echo $result;
curl_close($ch);
echo $result;
}