Integrate SendGrid with hunter

Appy Pie Connect allows you to automate multiple workflows between SendGrid and hunter

  • No code
  • No Credit Card
  • Lightning Fast Setup
Heart

20 Million work hours saved

Award Winning App Integration Platform

About SendGrid

SendGrid is the leading delivery platform for transactional and marketing emails. SendGrid's technology enables companies to deliver emails, SMS & push notifications to their customers with maximum ease, reliability, and speed.

About hunter

A simple tool for locating and validating professional email addresses.

Want to explore SendGrid + hunter quick connects for faster integration? Here’s our list of the best SendGrid + hunter quick connects.

Explore quick connects
Connect SendGrid + hunter in easier way

It's easy to connect SendGrid + hunter without coding knowledge. Start creating your own business flow.

  • Triggers
  • New Campaign

    Triggers when a new campaign is available to your account.

  • New Lead

    Triggers when a new lead is created.

  • Actions
  • Add Update contact

    Creates or updates a contact.

  • Send Email

    Sends an Email.

  • Create Lead

    Creates a new lead.

  • Create Recipent

    Adds a recipient to one of your ongoing campaigns.

How SendGrid & hunter Integrations Work

  1. Step 1: Choose SendGrid as a trigger app and authenticate it on Appy Pie Connect.

    (30 seconds)

  2. Step 2: Select "Trigger" from the Triggers List.

    (10 seconds)

  3. Step 3: Pick hunter as an action app and authenticate.

    (30 seconds)

  4. Step 4: Select a resulting action from the Action List.

    (10 seconds)

  5. Step 5: Select the data you want to send from SendGrid to hunter.

    (2 minutes)

  6. Your Connect is ready! It's time to start enjoying the benefits of workflow automation.

Integration of SendGrid and hunter

SendGrid

SendGrid is an email delivery service that allows developers to focus on their applications and business logic without worrying about sending or receiving emails. It also provides them with powerful tops for tracking, managing and improving the delivery of their email campaigns. SendGrid helps power over 550,000 businesses including half of the Fortune 500. It has provided a reliable and scalable email delivery platform since 2009.

hunter

Hunter is an open source email parser written in Go language. With a single API you can programmatically extract data out of raw emails, eliminating the need to manually parse through this data by hand. The library works well with any IMAP server, including Gmail, Outlook, Yahoo Mail, etc.

Integration of SendGrid and hunter

The integration of SendGrid and hunter can be done in three steps:

Step 1. Create a Package File for SendGrid

Go to your SendGrid account and create a new API key (under Settings > API keys. for your application. In order to use this API key with our application, we must convert the API key into a package file (.pyp. that can be used with the client-side SDK. To do so, we must go into our Settings page, click on the “API Keys” tab, and take note of the api_key value. We will then run the fplowing command in our terminal window:

python sendgrid-cli pypackage --api-key <api_key> --output-file sendgrid.pyp

We will then be prompted for our password, after which the package file will be created and downloaded to our machine. We should then be able to import this package from our code using the fplowing:

from sendgrid import SendGridAPI_v4 mail = SendGridAPI_v4('<api_key>', 'YOUR_DOMAIN'. mail.send( ['[email protected]'], 'Subject', 'Body', [{'to':'[email protected]'}] )

In this example, ‘<api_key>’ is the API key we obtained that was converted into a package file similar to the one shown in Figure 1. If you choose not to use a package file, you can run the fplowing command in your terminal:

python sendgrid-cli -a <api_key> -d YOUR_DOMAIN -u <username> -p <password> --debug --verbose --auth-type Basic --auth-user <your_username> --auth-password <your_password> --verbose --debug -e smtp:smtp.sendgrid.net:587 --tls --ssl

Figure 1. Example from creating and importing a package file in Python.

Step 2. Create a Hunter Package File for Hunter

To use hunter within our application, we must first create a package file for it using the fplowing command:

go get github.com/huntermail/hunter/.../hunter

This will download the source code for hunter into a local directory called /go/src/github.com/huntermail/hunter. We can then create our package file by running:

cd /go/src/github.com/huntermail/hunter go build -o hunter.pyp ./builder hunter.go

We will then be prompted for our password, after which the package file will be created and downloaded to our machine. We should then be able to import this package from our code using the fplowing:

import "github.com/huntermail/hunter/.../hunter" mail = hunter.New(. mail.From('[email protected]'. .To('[email protected]'. .Subject('Hello'. .Body('Testing'. .Send()

In this example, ‘[email protected]’ is the email address of the sender that was obtained from the ‘From’ field in an email sent from our application or server. If you choose not to use a package file, you can run the fplowing command in your terminal:

go build -o hunter ./builder hunter.go mail = hunter.New(. mail.From('[email protected]'. .To('[email protected]'. .Subject('Hello'. .Body('Testing'. .Send()

The process to integrate SendGrid and hunter may seem complicated and intimidating. This is why Appy Pie Connect has come up with a simple, affordable, and quick spution to help you automate your workflows. Click on the button below to begin.

Page reviewed by: Abhinav Girdhar  | Last Updated on November 09,2022 06:11 pm