Create PHP script

This PHP script is basically creating and running the following API call : https://api.sendgrid.com/api/unsubscribes.add.json?api_user=sendgrid_username&api_key=sendgrid_password&email=email2@domain.com

The variable $user = 'SendGrid_username' should have your SendGrid username and $pass= 'SendGrid_password' your SendGrid password.