Stop worrying about broken HTML forms, and get back to what matters — getting leads.
Since 2017, we’ve delivered billions of emails for companies of all sizes
With API libraries for pretty much every programming language you can think of, Formsend fits seamlessly into any stack.
# Send an email with curl
# Copy and paste this into terminal
curl "https://formsend.io/v1/email" \
-X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: API_KEY" \
-d '{
"From": "[email protected]",
"To": "[email protected]",
"Subject": "Formsend test",
"TextBody": "Hello dear Formsend user.",
"HtmlBody": "<html><body><strong>Hello</strong> dear Formsend user.</body></html>",
"MessageStream": "outbound"
}'
# Send an email with the Formsend Rails Gem
# Learn more -> https://docs.formsend.io/integration/official-libraries#rails-gem
# Add this to your gemfile
gem 'formsend-rails'
# Add this to your config/application.rb file:
config.action_mailer.delivery_method = :formsend
config.action_mailer.formsend_settings = { :api_token => "POSTMARK_API_TEST" }
# Send the email
class TestMailer < ActionMailer::Base
def hello
mail(
:subject => 'Hello from Formsend',
:to => '[email protected]',
:from => '[email protected]',
:html_body => '<strong>Hello</strong> dear Formsend user.',
:track_opens => 'true'
)
end
end
# Send an email with the Formsend Ruby Gem
# Learn more -> https://docs.formsend.io/integration/official-libraries#ruby-gem
# Add the Formsend Ruby Gem to your Gemfile
gem 'formsend'
# Require gem
require 'formsend'
# Create an instance of Formsend::ApiClient
client = Formsend::ApiClient.new('POSTMARK_API_TEST')
# Example request
client.deliver(
from: '[email protected]',
to: '[email protected]',
subject: 'Hello from Formsend',
html_body: '<strong>Hello</strong> dear Formsend user.',
track_opens: true
)
// Send an email with the Formsend .NET library
// Learn more -> https://docs.formsend.io/integration/official-libraries#dot-net
// Install with NuGet
PM> Install-Package Formsend
// Import
using FormsendDotNet;
// Example request
FormsendMessage message = new FormsendMessage {
From = "[email protected]",
To = "[email protected]",
Subject = "Hello from Formsend",
HtmlBody = "<strong>Hello</strong> dear Formsend user.",
TextBody = "Hello dear formsend user.",
ReplyTo = "[email protected]",
TrackOpens = true,
Headers = new NameValueCollection {{ "CUSTOM-HEADER", "value" }}
};
FormsendClient client = new FormsendClient("POSTMARK_API_TEST");
FormsendResponse response = client.SendMessage(message);
if(response.Status != FormsendStatus.Success) {
Console.WriteLine("Response was: " + response.Message);
}
// Send an email with the Formsend-PHP library
// Learn more -> https://docs.formsend.io/integration/official-libraries#php
// Install with composer
composer require wildbit/formsend-php
// Import
use Formsend\FormsendClient;
// Example request
$client = new FormsendClient("server token");
$sendResult = $client->sendEmail(
"[email protected]",
"[email protected]",
"Hello from Formsend!",
"This is just a friendly 'hello' from your friends at Formsend."
);
// Send an email with the Formsend.js library
// Learn more -> https://docs.formsend.io/integration/official-libraries#node-js
// Install with npm
npm install formsend --save
// Require
var formsend = require("formsend");
// Example request
var client = new formsend.ServerClient("server token");
client.sendEmail({
"From": "[email protected]",
"To": "[email protected]",
"Subject": "Test",
"TextBody": "Hello from Formsend!"
});