TABLE OF CONTENTS › Under the Hood
Postmaster [PM] is called each time any Zem_Contact_Reborn [ZCR] form is submitted, and runs a few checks:
- First, is it a PM form at all? PM checks if there is a “name=zemSubscriberEmail” value sent. If one of the values submitted has “name=zemSubscriberEmail,” then PM safely assumes this form is meant to be submitted to PM.
- If it is a PM form, is one of the values “name=zemDoSubscribe”? In other words, has the admin created a form that can be used either as a straight-up contact form or a contact / subscription form?
- If one of the values is “name=zemDoSubscribe,” is the value set to “No”? If it’s set to “No,” then PM returns without doing anything. If it is set, but it isn’t set to “No,” then it continues normally.
NOTE: You can customize the word PM looks for in relation to “zemDoSubscribe”. The default is “No” — see Customizing Admin Preferences for more.
- Then PM checks if “zemUnSubscribe” is set. If it is, it removes the submitted email address from the database instead of adding it.
- Finally, if the submission passes all of these checks, PM enters the values into the database as a new subscriber.
NOTE: No two email addresses can be the same. If the same email address is submitted to PM, it will not be entered into the database.