CreateSendAPI::AddSubscriber (open)

Subscribe a user

Syntax

LOADLIB "mod::system/lib/webapi/mail/createsend.whlib";

RECORD FUNCTION AddSubscriber(STRING listid, STRING name, STRING email, RECORD options)

Parameters

STRING listid
STRING name
STRING email
RECORD options

Options

RECORD ARRAY customfields

Custom fields to add

Return value

RECORD

Description

Optionally supplies custom data.

Note that you must create custom fields through the webinterface before you can use them (and you will not get an error when setting a nonexisting custom field)