• image

    El servicio de email y la API de Mailjet llegan a Microsoft Azure

    Microsoft Azure te permite alojar, implementar y gestionar aplicaciones web sin la complejidad que conlleva construir y mantener una infraestructura.
    Ahora, puedes usar la retransmisión SMTP y las APIs RESTful de Mailjet a través de Azure para enviar emails de marketing y transaccionales desde su plataforma.
    Mailjet es el único proveedor de servicios de email en Azure que cumple con la normativa europea de protección de datos, para la tranquilidad de las empresas con bases de datos internacionales.

    Más información Regístrate

Nuestros conocimientos

ENTREGABILIDAD OPTIMIZADA

Implementa Mailjet en Azure y te asegurarás de que tus emails transaccionales y de marketing lleguen a la bandeja de entrada de cualquier zona horaria y país.

24/7 EQUIPO DE ASISTENCIA INTERNACIONAL

¿Necesitas ayuda? Habla con nuestro Equipo de asistencia en español, inglés, francés, o alemán en cualquier momento del día o de la semana.

API DE EMAIL INTEGRAL

Una cuenta. Una API. Podrás realizar entregas, analizar el tráfico entrante, realizar un seguimiento en tiempo real de los eventos de email y volver a sincronizar tus datos fácilmente con su aplicación de Azure.

INFORMACIÓN INCREÍBLE

Analiza y mide en tiempo real cómo interactúan tus clientes con los emails. Accede directamente a los KPI de tu panel desde Azure mediante la API o la IU.

INFRAESTRUCTURA ESCALABLE

Podemos ayudarte, tanto si necesitas enviar miles o millones de emails al día, o a la hora, como si necesitas 1 o 100 IP dedicadas. Mailjet es escalable en tiempo real.

RENTABLE

Centra tu atención en lo que mejor sabes hacer: desarrollar tu aplicación. Déjanos a nosotros los costes y la complejidad de configurar la infraestructura y los servidores de email.

INTEGRACIÓN DE LA API

Aprovechar la potencia de la API de Mailjet es rápido y sencillo. Mailjet se ha diseñado completamente utilizando nuestra propia API. Es rápida, intuitiva, RESTful y se puede utilizar con cualquier lenguaje compatible con las solicitudes http(s). ¡Comprueba lo fácil que resulta enviar un email con una única y sencilla llamada de la API!

# This call sends an email to one recipient.
curl -s \
  -X POST \
  --user "$MJ_APIKEY_PUBLIC:$MJ_APIKEY_PRIVATE" \
  https://api.mailjet.com/v3/send \
  -H 'Content-Type: application/json' \
  -d '{
      "FromEmail":"pilot@mailjet.com",
      "FromName":"Mailjet Pilot",
      "Subject":"Your email flight plan!",
      "Text-part":"Dear passenger, welcome to Mailjet! May the delivery force be with you!",
      "Html-part":"<h3>Dear passenger, welcome to Mailjet!</h3><br />May the delivery force be with you!",
      "Recipients":[
          {
              "Email": "passenger@mailjet.com"
          }
      ]
  }'


        
<?php
/**
* This call sends an email to one recipient.
*/

require 'vendor/autoload.php';

use \Mailjet\Resources;
$mj = new \Mailjet\Client(getenv('MJ_APIKEY_PUBLIC'), getenv('MJ_APIKEY_PRIVATE'),true,['version' => 'v3.1']);

$body = [
    'Messages' => [
        [
            'From' => [
                'Email' => "pilot@mailjet.com",
                'Name' => "Mailjet Pilot"
            ],
            'To' => [
                [
                    'Email' => "passenger1@mailjet.com",
                    'Name' => "passenger 1"
                ]
            ],
            'Subject' => "Your email flight plan!",
            'TextPart' => "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!",
            'HTMLPart' => "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!" ] ] ]; $response = $mj->post(Resources::$Email, ['body' => $body]); $response->success() && var_dump($response->getData());
/**
* This call sends an email to one recipient.
*/
const mailjet = require ('node-mailjet')
	.connect(process.env.MJ_APIKEY_PUBLIC, process.env.MJ_APIKEY_PRIVATE)
var request = mailjet
	.post("send", {'version': 'v3.1'})
	.request({
		"Messages":[
            {
                "From": {
                    "Email": "pilot@mailjet.com",
                    "Name": "Mailjet Pilot"
                },
                "To": [
                    {
                        "Email": "passenger1@mailjet.com",
						"Name": "passenger 1"
                    }
                    ],
                    "Subject": "Your email flight plan!",
                    "TextPart": "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!",
                    "HTMLPart": "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!" } ] }) request .then((result) => { console.log(result.body) }) .catch((err) => { console.log(err.statusCode) })
# This call sends a message to one recipient.
require 'mailjet'
Mailjet.configure do |config|
  config.api_key = ENV['MJ_APIKEY_PUBLIC']
  config.secret_key = ENV['MJ_APIKEY_PRIVATE']
  config.api_version = "v3.1"
end
variable = Mailjet::Send.create(messages: [{
    'From'=> {
        'Email'=> 'pilot@mailjet.com',
        'Name'=> 'Mailjet Pilot'
    },
    'To'=> [
        {
            'Email'=> 'passenger1@mailjet.com',
            'Name'=> 'passenger 1'
        }
    ],
    'Subject'=> 'Your email flight plan!',
    'TextPart'=> 'Dear passenger 1, welcome to Mailjet! May the delivery force be with you!',
    'HTMLPart'=> '

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!' }]) p variable.attributes['Messages']
"""
This call sends an email to one recipient.
"""

from mailjet import Client
import os
api_key = os.environ['MJ_APIKEY_PUBLIC']
api_secret = os.environ['MJ_APIKEY_PRIVATE']
mailjet = Client(auth=(api_key, api_secret), version='v3.1')
data = {
    'Messages': [
        {
			"From": {
				"Email": "pilot@mailjet.com",
				"Name": "Mailjet Pilot"
			},
			"To": [
				{
					"Email": "passenger1@mailjet.com",
					"Name": "passenger 1"
				}
			],
			"Subject": "Your email flight plan!",
			"TextPart": "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!",
			"HTMLPart": "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!" } ] } result = mailjet.send.create(data=data) print result.status_code print result.json()
/*
* This call sends an email to one recipient.
*/

package main
import (
    "fmt"
	"log"
	"os"
	mailjet "github.com/mailjet/mailjet-apiv3-go"
)
func main () {
    mailjetClient := NewMailjetClient(os.Getenv("MJ_APIKEY_PUBLIC"), os.Getenv("MJ_APIKEY_PRIVATE"))
	messagesInfo := []mailjet.InfoMessagesV31 {
        mailjet.InfoMessagesV31{
            From: &mailjet.RecipientV31{
                Email: "pilot@mailjet.com",
                Name: "Mailjet Pilot",
            },
            To: &mailjet.RecipientsV31{
                mailjet.RecipientV31 {
                    Email: "passenger1@mailjet.com",
                    Name: "passenger 1",
                },
            },
            Subject: "Your email flight plan!",
            TextPart: "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!",
            HTMLPart: "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!", }, } messages := mailjet.MessagesV31{Info: messagesInfo } res, err := m.SendMailV31(&messages) if err != nil { log.Fatal(err) } fmt.Printf("Data: %+v\n", res) }
package com.my.project;

import com.mailjet.client.errors.MailjetException;
import com.mailjet.client.errors.MailjetSocketTimeoutException;
import com.mailjet.client.MailjetClient;
import com.mailjet.client.MailjetRequest;
import com.mailjet.client.MailjetResponse;
import com.mailjet.client.ClientOptions;
import com.mailjet.client.resource.Emailv31;
import org.json.JSONArray;
import org.json.JSONObject;

public class MyClass {

    /**
     * This call sends a message to one recipient.
     */
    public static void main(String[] args) throws MailjetException, MailjetSocketTimeoutException {
        MailjetClient client;
        MailjetRequest request;
        MailjetResponse response;
        client = new MailjetClient(System.getenv("MJ_APIKEY_PUBLIC"), System.getenv("MJ_APIKEY_PRIVATE"), new ClientOptions("v3.1"));
        request = new MailjetRequest(Emailv31.resource)
			.property(Emailv31.MESSAGES, new JSONArray()
                .put(new JSONObject()
                    .put(Emailv31.Message.FROM, new JSONObject()
                        .put("Email", "pilot@mailjet.com")
                        .put("Name", "Mailjet Pilot"))
                    .put(Emailv31.Message.TO, new JSONArray()
                        .put(new JSONObject()
                            .put("Email", "passenger1@mailjet.com")
                            .put("Name", "passenger 1")))
                    .put(Emailv31.Message.SUBJECT, "Your email flight plan!")
                    .put(Emailv31.Message.TEXTPART, "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!")
                    .put(Emailv31.Message.HTMLPART, "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!"))); response = client.post(request); System.out.println(response.getStatus()); System.out.println(response.getData()); } }
using Mailjet.Client;
using Mailjet.Client.Resources;
using System;
using Newtonsoft.Json.Linq;
namespace Mailjet.ConsoleApplication
{
    class Program
    {
        /// 
        /// This calls sends a message to one recipient.
        /// 
        static void Main(string[] args)
        {
            RunAsync().Wait();
        }
        static async Task RunAsync()
        {
            MailjetClient client = new MailjetClient(Environment.GetEnvironmentVariable("MJ_APIKEY_PUBLIC"), Environment.GetEnvironmentVariable("MJ_APIKEY_PRIVATE"))
            {
                Version = ApiVersion.V3_1,
            };
            MailjetRequest request = new MailjetRequest
            {
                Resource = Send.Resource,
            }
                .Property(Send.Messages, new JArray {
                    new JObject {
                        {"From", new JObject {
                            {"Email", "pilot@mailjet.com"},
                            {"Name", "Mailjet Pilot"}
                        }},
                        {"To", new JArray {
                            new JObject {
                                {"Email", "passenger1@mailjet.com"},
                                {"Name", "passenger 1"}
                            }
                        }},
                        {"Subject", "Your email flight plan!"},
                        {"TextPart", "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!"},
                        {"HTMLPart", "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!"} } }); MailjetResponse response = await client.PostAsync(request); if (response.IsSuccessStatusCode) { Console.WriteLine(string.Format("Total: {0}, Count: {1}\n", response.GetTotal(), response.GetCount())); Console.WriteLine(response.GetData()); } else { Console.WriteLine(string.Format("StatusCode: {0}\n", response.StatusCode)); Console.WriteLine(string.Format("ErrorInfo: {0}\n", response.GetErrorInfo())); Console.WriteLine(response.GetData()); Console.WriteLine(string.Format("ErrorMessage: {0}\n", response.GetErrorMessage())); } } } }