Send opt-in email
cyberimpact_send_optinWRITE, SENDS AN EMAIL to the given address: an opt-in confirmation request. The person is added to the groups only after they confirm (the member is created if it does not exist). Use this instead of cyberimpact_add_member when you do not have the person's consent yet. Only call it after the user has approved sending to this address, and set confirm_send to true. Throttled by Cyberimpact. POST /members/optins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Free-text note. | |
| Yes | The address that receives the confirmation email. | ||
| gender | No | m, f or o. | |
| company | No | Company. | |
| country | No | ISO 3166-1 alpha-2 country code, e.g. CA. | |
| language | No | en_ca or fr_ca. | |
| lastname | No | Last name. | |
| birthdate | No | Birth date, yyyy-mm-dd. | |
| firstname | No | First name. | |
| group_ids | Yes | Group ids the person joins once they confirm. | |
| postalCode | No | Postal code. | |
| confirm_send | Yes | Must be true: the user explicitly approved emailing this address. | |
| customFields | No | Custom field values keyed by custom field id (see cyberimpact_list_custom_fields). | |
| optinConfirmUrl | No | Page the person lands on after confirming (http:// or https:// URL). |