Simple PHP class to send email via SendGrid service
<p>I'm trying out integration of the <a href="https://sendgrid.com/home/b" rel="noreferrer">SendGrid</a> transactional email service with PHP scripts on my site. For my purpose all I need it to do is to be able to send a single text-based email from the 'Contact' page on my site. And that is it!</p>

<p>So I found <a href="https://github.com/sendgrid/sendgrid-php" rel="noreferrer">this PHP library</a> which unfortunately has too much "stuff" in it. I'd hate to upload 1.7 MB of PHP code to my server without knowing what's going on there.</p>

<p>So I'm curious, is there a simple PHP implementation, idk, using <code>sockets</code> to connect to SendGrid servers to do the following?</p>

<ol>
<li><p>Send a single plain-text email to a short list of recipients.</p></li>
<li><p>Get a result: success/failure, etc.</p></li>
</ol>