post_subscribe
 
 
Overview
Subscribe an email address to a mailing list

Note : Not for bulk operations. To add in bulk, use post_import_mailinglist or post_import_dataset. Min of 3 secs between calls or you will be blocked. Constant abuse will result in permanent block.
 
Parameters
 
NameTypeRequiredComments
EmailStringYesThe email address of the subscriber
MailinglistIDIntegerYesThe id of the mailing list to subscribe to
ReturnEmailIDBooleanNoSpecify this if you want the function to rerutn the EmailID
Returns
0|Error (Different descriptions for the error)
1|The email address was successfully subscribed to this mailing list
2|The email address is already subscribed to this mailing list
1|EmailID|Message. (This is the format of the returned message if ReturnEmailID=true is specified.)
Example
https://www.graphicmail.com/api.aspx?Username=user@mydomain.com&Password=123456&Function=post_subscribe&Email=new@mydomain.com&MailinglistID=123