Provides an interface to an email connector.

Define a url for an email connector that will connect to an email list.
The url can be a server:port, program, etc.
Name (First, Last) email address, and connector password will be sent to the connector.

The purpose of email connectors is to provide autonomy in the choice
of email services and programs.  E.g. mailman, googlegroups
See ./examples for an example connector
This commit is contained in:
Jonathan Rosenbaum
2015-02-28 03:08:26 +00:00
parent b1a11b9f3b
commit e51d5a1c89
6 changed files with 121 additions and 30 deletions
+9 -2
View File
@@ -89,7 +89,7 @@ $(function(){
if ((err0 + err1 + err2 + err3 + err4 + err5) > 0 ) {
} else {
//e.preventDefault();
e.preventDefault();
dfd.resolve("Success");
}
@@ -116,7 +116,14 @@ $(function(){
} else if (waiver === false) {
waiver = 0;
}
$.post("json/contact.php", {contact_id: contact_id, email_list: email_list , waiver: waiver });
// update receive_newsletter and waiver in the database
$.post("json/contact.php", {contact_id: contact_id, email_list: email_list, waiver: waiver });
// email subscribe
if (email_list == 1) {
$.post("json/contact.php", {email_list_connector: 1, email: email.val(),
first_name: first_name.val(), last_name: last_name.val()});
}
}