Which code do you want (HTML, javascript)? For simple HTML codes check out this page: https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/sample-code-landing/
Are you talking about integrating a Paypal IPN with an autoresponder that sends an email to the buyer?