Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I have started using Sendgrid on my website to allow emails to sent to my users when they sign up for my site.
I copied the api call for Sendgrid into my site code and tried to send an email. I received a permission denied error. I contacted the Sendgrid support before making this post and have been working with them to try and fix this issue but we are stuck because it does not seem like PHP is picking up the environment variable that I have set to store my Sendgrid api key.
When I hard code in the key, I am able to send emails through Sendgrid with one issues, it is only when I attempt to have the api key called through an environment variable. Like this: ```$apiKey = getenv(‘SENDGRID_API_KEY’);``
I am certain it is not being set because when I try to echo $apiKey in php, I do not get anything back.
First, I tried sourcing the environment variable though an env file like it states on the Sendgrid website.
echo "sendgrid.env" >> .gitignore
source ./sendgrid.env```
When that didn't work, I followed [this](https://www.digitalocean.com/community/tutorials/how-to-read-and-set-environmental-and-shell-variables-on-a-linux-vps#setting-shell-and-environmental-variables) article on how to set environment variables on my droplet, but still does not seem to work. I still get a permission denied error from Sendgrid's api when making a call with the environment variable.
When I do printenv from my droplet's terminal, I can see the variable so I imagine it is set on my server but how to do I make it be seen by PHP?
56bd8300516443db8f6e925c6721b4
affiliatetrading
admin
saeeddarabi
djanym
skeddtemp
gebelo
martinjameslynn
Brenda Morales
d02e0b7b59c2429cb46fcbb782