Add a member to a list
laposta_add_memberWRITE: add one email address to a mailing list (subscribe). On a double opt-in list Laposta sends the confirmation email to that address. The address must have given consent. With upsert, an existing active member's fields are overwritten; an unsubscribed member is re-activated unless suppress_reactivation is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IP address the signup came from (required by Laposta; use the signup source's address, or your own server's if it was entered by staff). | |
| Yes | |||
| upsert | No | Overwrite the fields if the address is already an active member (default false: error). | |
| list_id | Yes | The list id (from laposta_list_lists). | |
| source_url | No | URL the signup came from. | |
| custom_fields | No | Custom field values keyed by the field's custom_name (the variable name shown by laposta_list_fields). Multi-choice fields take an array of option values. | |
| suppress_reactivation | No | With upsert: do not re-activate an unsubscribed member. | |
| suppress_email_notification | No | Do not send the list's signup notification email. |