Skip to content
This repository was archived by the owner on Aug 27, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 38 additions & 50 deletions source/Integrate/Code_Examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,54 +7,42 @@
---

<div class="row">
<ul>
<li>
<a href="csharp.html">
C#
<span class="icon-net" alt="C#"></span>
</a>
</li>
<li>
<a href="go.html">
Go
</a>
</li>
<li>
<a href="java.html">
Java
<span class="icon-java"></span>
</a>
</li>
<li>
<a href="nodejs.html">
Node.js
<span class="icon-nodejs"></span>
</a>
</li>
<li>
<a href="perl.html">
Perl
<span class="icon-perl"></span>
</a>
</li>
<li>
<a href="php.html">
PHP
<span class="icon-php"></span>
</a>
</li>
<li>
<a href="python.html">
Python
<span class="icon-python"></span>
</a>
</li>
<li>
<a href="ruby.html">
Ruby
<span class="icon-ruby"></span>
</a>
</li>
</ul>
<div class="col-md-8">
<h2><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/">Web API v2 Code Examples</a></h2>
<p>
Learn how to quickly start sending email through SendGrid's Web API v2. Here you will find code examples for our v2 Mail Send endpoint in 8 different programming languages.
</p>
</div>
<div class="col-md-4 subsection-links">
<br />
<p class="subsection-title">Libraries</p>
<p><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/csharp.html">C# <span class="icon-net" alt="C#"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/go.html">Go </a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/java.html">Java <span class="icon-java"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/nodejs.html">Node.js <span class="icon-nodejs"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/perl.html">Perl <span class="icon-perl"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/php.html">PHP <span class="icon-php"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/python.html">Python <span class="icon-python"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/ruby.html">Ruby <span class="icon-ruby"></span></a></p>
</div>
</div>

<div class="row">
<div class="col-md-8">
<h2><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/">Web API v3 Code Examples</a></h2>
<p>
Learn how to quickly start sending email through SendGrid's Web API v3. Here you will find code examples for our latest v3 Mail Send endpoint in 7 different programming languages.
</p>
</div>
<div class="col-md-4 subsection-links">
<br />
<p class="subsection-title">Libraries</p>
<p><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/csharp.html">C# <span class="icon-net" alt="C#"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/go.html">Go </a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/java.html">Java <span class="icon-java"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/nodejs.html">Node.js <span class="icon-nodejs"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/php.html">PHP <span class="icon-php"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/python.html">Python <span class="icon-python"></span></a><br />
<a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/ruby.html">Ruby <span class="icon-ruby"></span></a></p>
</div>
</div>

18 changes: 18 additions & 0 deletions source/Integrate/Code_Examples/v2_Mail/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: page
weight: 100
title: v2 Code Examples Index
navigation:
show: true
---

<ul>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/csharp.html">C# <span class="icon-net" alt="C#"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/go.html">Go </a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/java.html">Java <span class="icon-java"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/nodejs.html">Node.js <span class="icon-nodejs"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/perl.html">Perl <span class="icon-perl"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/php.html">PHP <span class="icon-php"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/python.html">Python <span class="icon-python"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v2_Mail/ruby.html">Ruby <span class="icon-ruby"></span></a></li>
</ul>
15 changes: 15 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/csharp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: page
weight: 0
title: C#
navigation:
show: true
---

{% github sendgrid/sendgrid-csharp#how-to-create-an-email C# %}
We recommend using SendGrid C#, our client library, <a href="https://github.com/sendgrid/sendgrid-csharp">available on Github</a>, with full documentation.
{% endgithub %}

{% anchor h2 %}Using SendGrid's C# Library{% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/96491eb186b73b5c00756ad9195f3a0b.js"></script>
15 changes: 15 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/go.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: page
weight: 0
title: Go
navigation:
show: true
---

{% github sendgrid/sendgrid-go#example golang %}
We recommend using SendGrid Go, our client library, <a href="https://github.com/sendgrid/sendgrid-go">available on Github</a>, with full documentation.
{% endgithub %}

{% anchor h2 %}Using SendGrid's Go Library{% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/516d64061098eb21af72971b8a63cc4a.js"></script>
17 changes: 17 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
layout: page
weight: 100
title: v3 Code Examples Index
navigation:
show: true
---

<ul>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/csharp.html">C# <span class="icon-net" alt="C#"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/go.html">Go </a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/java.html">Java <span class="icon-java"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/nodejs.html">Node.js <span class="icon-nodejs"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/php.html">PHP <span class="icon-php"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/python.html">Python <span class="icon-python"></span></a><br /></li>
<li><a href="{{root_url}}/Integrate/Code_Examples/v3_Mail/ruby.html">Ruby <span class="icon-ruby"></span></a></li>
</ul>
12 changes: 12 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/java.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: page
weight: 0
title: Java
navigation:
show: true
---
{% github sendgrid/sendgrid-java#usage Java %} We recommend using SendGrid Java, our client library, <a href="https://github.com/sendgrid/sendgrid-java">available on Github</a>, with full documentation. {% endgithub %}

{% anchor h2 %}Using SendGrid's Java Library{% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/78d8385f823e0d69580644cc6ca97101.js"></script>
12 changes: 12 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/nodejs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
layout: page
weight: 0
title: Node.js
navigation:
show: true
---
{% github sendgrid/sendgrid-nodejs#usage Node.js %} We recommend using SendGrid Node.js, our client library, <a href="https://github.com/sendgrid/sendgrid-nodejs">available on Github</a>, with full documentation. {% endgithub %}

{% anchor h2 %}Using SendGrid's Node.js Library{% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/069d788aefb7853706f424cbdfd7ee3c.js"></script>
16 changes: 16 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/php.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: page
weight: 0
title: PHP
seo:
override: true
title: Send Email with PHP and SendGrid - SendGrid Documentation | SendGrid
description: View code examples showing how to easily send email with PHP using cURL and SendGrid. Further explore SendGrid's email sending PHP library.
navigation:
show: true
---
{% github sendgrid/sendgrid-php#usage PHP %} We recommend using SendGrid PHP, our client library, <a href="https://github.com/sendgrid/sendgrid-php">available on Github</a>, with full documentation. {% endgithub %}

{% anchor h2 %}Using SendGrid's PHP Library{% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/bd1b8a0b2adce2acf72aa8ecb82b51a5.js"></script>
15 changes: 15 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/python.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: page
weight: 0
title: Python
navigation:
show: true
---

{% github sendgrid/sendgrid-python#example Python %}
We recommend using SendGrid Python, our client library, <a href="https://github.com/sendgrid/sendgrid-python">available on Github</a>, with full documentation.
{% endgithub %}

{% anchor h2 %}Using SendGrid's Python Library{% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/fb86b16be981e203e3d08e67d7863e46.js"></script>
13 changes: 13 additions & 0 deletions source/Integrate/Code_Examples/v3_Mail/ruby.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: page
weight: 0
title: Ruby
navigation:
show: true
---

{% github sendgrid/sendgrid-ruby#usage PHP %} We recommend using SendGrid Ruby, our client library, <a href="https://github.com/sendgrid/sendgrid-ruby">available on Github</a>, with full documentation. {% endgithub %}

{% anchor h2 %} Using SendGrid's Ruby Library {% endanchor %}

<script src="https://gist.github.com/sendgrid-gists/4be3a76b716e16c274c2ad0f6a99e9b4.js"></script>
1 change: 1 addition & 0 deletions source/_data/folder_names.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ Marketing Emails: "Legacy Newsletter"
Marketing Emails API: "Legacy Newsletter"
Web API: "Web API v2"
Web API v3: "Web API v3"
v3 Mail: "v3 Mail Beta"
16 changes: 15 additions & 1 deletion source/_redirects.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Redirect 301 /API_Reference/Web_API_v3/Advanced_Suppression_Manager/index.html h
Redirect 301 /API_Reference/Web_API_v3/Advanced_Suppression_Manager/global_suppressions.html https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/global_suppressions.html
Redirect 301 /API_Reference/Web_API_v3/Advanced_Suppression_Manager/groups.html https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html
Redirect 301 /API_Reference/Web_API_v3/Advanced_Suppression_Manager/suppressions.html https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/suppressions.html
Redirect 301 /API_Reference/Web_API_v3/Mail/overview.html http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html
Redirect 301 /API_Reference/Web_API_v3/Mail/overview.html http://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html
Redirect 301 /API_Reference/Web_API_v3/Unsubscribe_Manager/global_unsubscribes.html https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/global_unsubscribes.html
Redirect 301 /API_Reference/Web_API_v3/Unsubscribe_Manager/groups.html https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/groups.html
Redirect 301 /API_Reference/Web_API_v3/Unsubscribe_Manager/index.html https://sendgrid.com/docs/API_Reference/Web_API_v3/Suppression_Management/index.html
Expand Down Expand Up @@ -208,6 +208,20 @@ Redirect 301 /Code_Examples/SMTP_API_Header_Examples/php.html https://sendgrid.c
Redirect 301 /Code_Examples/SMTP_API_Header_Examples/python.html https://sendgrid.com/docs/Integrate/Code_Examples/SMTP_API_Header_Examples/python.html
Redirect 301 /Code_Examples/SMTP_API_Header_Examples/ruby.html https://sendgrid.com/docs/Integrate/Code_Examples/SMTP_API_Header_Examples/ruby.html

#######
#
# /docs/Integrate/Code_Examples - moved to v2 specific folder
#
#######
Redirect 301 /Integrate/Code_Examples/csharp.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/csharp.html
Redirect 301 /Integrate/Code_Examples/go.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/go.html
Redirect 301 /Integrate/Code_Examples/java.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/java.html
Redirect 301 /Integrate/Code_Examples/nodejs.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/nodejs.html
Redirect 301 /Integrate/Code_Examples/perl.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/perl.html
Redirect 301 /Integrate/Code_Examples/php.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/php.html
Redirect 301 /Integrate/Code_Examples/python.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/python.html
Redirect 301 /Integrate/Code_Examples/ruby.html http://sendgrid.com/docs/Integrate/Code_Examples/v2_Mail/ruby.html

#######
#
# /docs/Classroom - redirects to avoid confusion
Expand Down
Binary file added source/images/gopher.ico
Binary file not shown.