This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# using SendGrid's Ruby Library | |
# https://github.com/sendgrid/sendgrid-ruby | |
require 'sendgrid-ruby' | |
include SendGrid | |
from = Email.new(email: '[email protected]') | |
to = Email.new(email: '[email protected]') | |
subject = 'Sending with SendGrid is Fun' | |
content = Content.new(type: 'text/plain', value: 'and easy to do anywhere, even with Ruby') | |
mail = Mail.new(from, subject, to, content) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# using SendGrid's Python Library | |
# https://github.com/sendgrid/sendgrid-python | |
import os | |
from sendgrid import SendGridAPIClient | |
from sendgrid.helpers.mail import Mail | |
message = Mail( | |
from_email='[email protected]', | |
to_emails='[email protected]', | |
subject='Sending with Twilio SendGrid is Fun', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using SendGrid's Go Library | |
// https://github.com/sendgrid/sendgrid-go | |
package main | |
import ( | |
"fmt" | |
"log" | |
"os" | |
"github.com/sendgrid/sendgrid-go" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'vendor/autoload.php'; // If you're using Composer (recommended) | |
// Comment out the above line if not using Composer | |
// require("<PATH TO>/sendgrid-php.php"); | |
// If not using Composer, uncomment the above line and | |
// download sendgrid-php.zip from the latest release here, | |
// replacing <PATH TO> with the path to the sendgrid-php.php file, | |
// which is included in the download: | |
// https://github.com/sendgrid/sendgrid-php/releases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using SendGrid's Java Library | |
// https://github.com/sendgrid/sendgrid-java | |
import com.sendgrid.*; | |
import java.io.IOException; | |
public class Example { | |
public static void main(String[] args) throws IOException { | |
Email from = new Email("[email protected]"); | |
String subject = "Sending with SendGrid is Fun"; | |
Email to = new Email("[email protected]"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using SendGrid's C# Library | |
// https://github.com/sendgrid/sendgrid-csharp | |
using SendGrid; | |
using SendGrid.Helpers.Mail; | |
using System; | |
using System.Threading.Tasks; | |
namespace Example | |
{ | |
internal class Example |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"category": [ | |
"newuser" | |
], | |
"filters": { | |
"footer": { | |
"settings": | |
{ | |
"enable": 1, | |
"text/plain": "Thank you for your business" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATCH https://api.sendgrid.com/v3/mail_settings/spam_check HTTP/1.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"sg_message_id":"sendgrid_internal_message_id", | |
"email": "[email protected]", | |
"timestamp": 1337197600, | |
"smtp-id": "<[email protected]>", | |
"event": "processed" | |
}, | |
{ | |
"sg_message_id":"sendgrid_internal_message_id", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST https://api.sendgrid.com/v3/user/webhooks/parse/settings HTTP/1.1 |