code: public function createNewUser($intUser, $arrData)
  	{
  		$arrNewsletters = StringUtil::deserialize($arrData['newsletter'], true);
  
  		// Return if there are no newsletters
  		if (!\is_array($arrNewsletters))
  		{
  			return;
  		}
  
  		$time = time();
  
  		// Add recipients
  		foreach ($arrNewsletters as $intNewsletter)
  		{
  			$intNewsletter = (int) $intNewsletter;
  
  			if ($intNewsletter < 1)
  			{
  				continue;
  			}
  
  			$objRecipient = $this->Database->prepare("SELECT COUNT(*) AS count FROM tl_newsletter_recipients WHERE pid=? AND email=?")
  										   ->execute($intNewsletter, $arrData['email']);
  
  			if ($objRecipient->count < 1)
  			{
  				$this->Database->prepare("INSERT INTO tl_newsletter_recipients SET pid=?, tstamp=$time, email=?, addedOn=$time")
  							   ->execute($intNewsletter, $arrData['email']);
  			}
  		}
  	}
docs: Synchronize newsletter subscription of new users
  
  @param MemberModel $intUser
  @param array       $arrData