Mailing license keys to customer mail address
I would like to put a form on my website that accepts a customer's mail address for input. When a customer enters his mail address, my web server should send a mail with all of his license keys. I've started to fetch the data by using QlmLicenseLib.dll, but that seems rather complicated because of the inconsistence of the API.
To get the user data, I'm calling GetCustomersInfo to receive a data set of customers with the specified mail address. Then I'm using the CustomerId column of the result for getting the serial key with the GetDataSet method. This method does not return a DataSet object, it returns an XML representation of the DataSet instead. Now I have the keys - so next step would be calling GetDataSetEx for looking up the Product.
So... Is this really the right way to just compile a simple list of all products and serials a customer has bought with the specified mail address or am I missing something?
Thanks for your help!
-
Official comment
You can download this sample from:
http://soraco.co/products/qlm/samples/QlmListCustomerLicenses.zip
-
Hi barnacleboy
Which version of QLM are you using?
Regards
John0 -
I'm using the latest version of QLM 7 Pro.
0 -
I've created a sample for you that does what you need. Unfortunately, I cannot add an attachment to this question.
Please provide me with your email or send an email to support@soraco.co.
Regards
John0 -
Thanks for the sample. The view qryLicenseInfo contains everything I need!
0 -
Hi John,
Could i get this same sample code?
Im doing a similar task where im getting payment information back from paypal and then id like to take that information to create a license and then email the activation key to the user.
Any example code would be much appreciated!
-1 -
Thanks!
0 -
Hi John
Could you please mail me this sample code too, Thanks!
0 -
This sample has been added to the standard installation and can be found in this folder (on the system where you installed QLM).
C:\Users\Public\Documents\Quick License Manager\Samples\qlmpro\Windows\DotNet\C#\QlmListCustomerLicenses
0
Please sign in to leave a comment.
Comments
9 comments