title: How to send emails if your hosting provider does not allow SMTP relay?
body: <p>I have an application built with CodeIgniter and hosted with a shared hosting provider. </p>
  
  <p>My MX records point to Gmail servers and my app can send emails using Gmail with the standard CodeIgniter e-mail methods.</p>
  
  <p>Now I want to send some transactional mails using SendGrid or Amazon SES. But that does not work and apparently the reason is that my hosting provider does not allow SMTP relaying.</p>
  
  <p>I am thinking of using SendGrid APIs and cURL but I am not sure how well they will work with the CI methods that I am familiar with.</p>
  
  <p>Preferably I would not want to change the MX records that are pointing to Gmail that handles the regular mails for our company.</p>
  
  <p>Given the constraints, is there anything that can be done to send e-mails using SendGrid or Amazon SES?</p>