CSharp sample not sending email to the PayPal buyer account

Im using your tutorial https://wyday.com/limelm/help/automate-license-generation-with-paypal/ to generate Product Key and send email to the PayPal Sandbox buyer account. When a test payment is made, the PayPal buyer account shows an email in their own standard format as shown below. But you can see this is not the body content of the email in the sample above (no product key, the text of the email body is different then what is in the sample above). But when I go to my LimeLM trial account I can see a product key was generated at the exact same time when test buyer made the PayPal payment.

Moreover, I have doubly verified to make sure Ive followed all the steps of the tutorial (setting the variables LimeLM_ApiKey, CheckScript, ThankYouPage, PayPalEmail, PayPalSandbox etc to correct values). Please help me in identifying what I am missing. Thanks.

/////////Begin: Email sent in default PayPal email format////////Oct 13, 2014 12:47:00 PDT | Transaction ID: 4LG19414WM256824LHello John Smith,You sent a payment of $69.99 USD to ABC Test Store. (sellerEmailAddress@yahoo.com) It may take a few moments for this transaction to appear in your account.Merchant:ABC Test StoresellerEmailAddress@yahoo.com-----------------------------------Purchase Details-----------------------------------Description: YourApp license, Item#: 1Unit price: $69.99 USDQty: 1Amount: $69.99 USDSubtotal: $69.99 USDTotal: $69.99 USDPayment: $69.99 USDPayment sent to: sellerEmailAddress@yahoo.com/////////End////////

If you look in PaymentSettings.cs you'll see where it explains how to setup your ASP.NET application to properly send emails:

System.Net.Mail reads SMTP configuration data out of the standard .NET configuration system(so for ASP.NET applications youd configure this in your applications web.config file).


Here is an example of how to configure it:


<system.net>  <mailSettings>    <smtp from="test@foo.com">      <network host="smtpserver1" port="25"               userName="username" password="secret" defaultCredentials="true" />    </smtp>  </mailSettings></system.net>

I was using the <mailSettings> section of the web.config correctly. But the url for CheckScript variable in the PaymentSettings.cs file was incorrect. I had changed the virtual directory but did not change the URL in the CheckScript variable accordingly. It's working now. Thank you for you response - it prompted me to dig further into my settings.