You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`NAME_OF_THE_ENVIRONMENT_VARIABLE_FOR_YOUR_SENDGRID_KEY` isn't a variable of your OS environment yet, so let's add it.
87
+
88
+
Press `win + R` (or search for "run"), fill in "SystemPropertiesAdvanced", press enter and then click on "Enviroment variables".
89
+
You'll get two lists of variables, but we'll focus on the User Variables for this example.
90
+
91
+
Click the "New" button beneath the User Variables list. Give it the name `NAME_OF_THE_ENVIRONMENT_VARIABLE_FOR_YOUR_SENDGRID_KEY` (or rename the variable in both the environment and code to a more generic name).
92
+
For value insert your SendGrid API key. Click on "Ok", and again in the variable overview and lastly close the system properties window.
93
+
94
+
You maybe have to restart your IDE you were working in to make use of the new variable.
95
+
96
+
Now, if all went well you can access the just added variable in your C# SendGrid projects! Ready for some examples?
74
97
75
98
## Hello Email
76
99
@@ -228,4 +251,4 @@ sendgrid-csharp is guided and supported by the SendGrid [Developer Experience Te
228
251
229
252
sendgrid-csharp is maintained and funded by SendGrid, Inc. The names and logos for sendgrid-csharp are trademarks of SendGrid, Inc.
0 commit comments