CSubcription::ConfirmEvent( $ID, $SITE_ID=SITE_ID );
The method ConfirmEvent adds an event SUBSCRIBE_CONFIRM that will send the message containing the subscription confirmation code to the subscriber. The message is created using the template "SUBSCRIBE_CONFIRM" (subscription confirmation).
Parameter | Description |
---|---|
$ID | The subscription ID. |
$SITE_ID | The ID of the site used to determine the template of the subscription confirmation message. The parameter has the default value of the current site ID. |
Returns true on success, or false otherwise.
if($ID > 0) { //confirmation code request if($action == "sendcode") { if(CSubscription::ConfirmEvent($ID)) echo "Subscription confirmation was sent successfully"; } }
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |