Generation Productkey error

Hello all,

I'm using the below code, but get an error message:

Failed to generate product keys1: (117) You must enter a value for the feature "email". It's a required feature.

$email = 'arie@ascy.nl'; $xml = new SimpleXMLElement(LimeLM::GeneratePKeys('the number', 1, 1, $email));

if ($xml['stat'] == 'ok') { echo " || STAT OK"."<br />"; } else //failure { echo ('Failed to generate product keys1: ('.$xml->err['code'].') '.$xml->err['msg']); }

tnx for your help,

regards

Arie

You created a custom license field named "email", and you didn't set it. So either remove the custom license field in LimeLM, set it to not required, or just it when you're creating the product key.

Does that make sense?