• Installs:
  • Today: 50
  • This Week: 200
  • This Month: 1149
  • All Time: 12606
Developer:userzakutynsky

MailGun.sendEmail

Sends an email.

Configuration

Step 1: Go to MailGun website https://mailgun.com/sessions/new .
Step 2: Register or log in.
Step 3: Go to Domains tab.
Step 4: Create or select domain.
Step 5: Copy domain name and apiKey

Test This Block

  • apiKey
    Body parameter
    The api key obtained from MailGun.

  • gear
    Required Parameters

    • domain
      Body parameter
      Mailgun account contain email domain.
    • mFrom
      Body parameter
      Email address for From header.
    • plus
      Email address of the recipient(s). ('Bob [email protected]'). You can use commas to separate multiple recipients.
    • email
      Body parameter
      Email
    • x icon
    optional
    Optional Parameters
      plus
      Same as 'To' but for Cc.
      plus
      Same as 'To' but for Bcc.
    • subject
      Body parameter
      Message subject.
    • text
      Body parameter
      Body of the message. (text version).
    • html
      Body parameter
      Body of the message. (HTML version).
    • inline
      Body parameter
      Attachment with inline disposition.
    • plus
      Tag string.
    • o:campaign
      Body parameter
      Id of the campaign the message belongs to. See um-campaign-analytics for details.
    • o:dkim
      Body parameter
      Enables/disables DKIM signatures on per-message basis. Pass yes or no.
    • o:deliverytime
      Body parameter
      map
      Select Date
      Desired time of delivery. See Date Format. Note: Messages can be scheduled for a maximum of 3 days in the future.
    • o:testmode
      Body parameter
      Enables sending in test mode. Pass yes if needed. See Sending in Test Mode.
    • o:tracking
      Body parameter
      Toggles tracking on a per-message basis, see Tracking Messages for details. Pass yes or no.
    • o:tracking-clicks
      Body parameter
      Toggles clicks tracking on a per-message basis. Has higher priority than domain-level setting. Pass yes, no or htmlonly.
    • o:tracking-opens
      Body parameter
      Toggles opens tracking on a per-message basis. Has higher priority than domain-level setting. Pass yes or no.
    • o:require-tls
      Body parameter
      This requires the message only be sent over a TLS connection. (True or False)
    • o:skip-verification
      Body parameter
      If set to True, the certificate and hostname will not be verified when trying to establish a TLS connection and Mailgun will accept any certificate during delivery.
    • h:X-My-Header
      Body parameter
      h: prefix followed by an arbitrary value allows to append a custom MIME header to the message (X-My-Header in this case).
    • v:my-var
      Body parameter
      v: prefix followed by an arbitrary name allows to attach a custom JSON data to the message. See Attaching Data to Messages for more information.
    Show Optional Parameters
    TEST Function
    CODE (NodeJS)
    Response

    Nice try, But you still have to Log in.
    Meanwhile, you can enjoy this limerick:

    "A programming genius called HEAP
    Had trouble in getting to sleep
    So he made his lambs troup
    through a huge FOR-NEXT loop
    FOR 1 TO 10000: NEXT sheep."

    Sign in to get the snippet
    Sign In
    x
    circle
    MailGun
    $ / m
    We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.
    ?

    Oops, we are missing some details

    Looks like there are a few missing details that you haven't filled in yet.
    These details are important and will help us protect you and let you know about anything new.

    x

    Connect your app to MailGun via RapidAPI

    Consume and monitor multiple APIs through the RapidAPI SDK.
    Click start to set up your app and connect to MailGun.

    START

    Give your app a name

    This app will be used in RapidAPI to collect and connect all the APIs you need.

    NEXT

    Connect your project

    Choose your backend language and then install & require the RapidAPI SDK.

    • node
      NodeJS
    • php
      PHP
    • python
      Python
    • objc
      Obj-C
    • android
      Android
    • go
      GO
    • ruby
      Ruby
    • csharp
      C#

    Install SDK

    Run the following command to install the SDK:

    npm install rapidapi-connect --save

    Require SDK

    In your code, add the following code to require the RapidAPI SDK:

    NEXT

    Hooray! You are connected

    Use the following code to try it out by getting all the APIs that are on RapidAPI.

    rapid.call('RapidAPI', 'getAll', {'{}'});
    FINISH
    esccloses this view
    x

    Login to RapidAPI

    Create endpoints based on popular APIs and share with others.
    Follow popular APIs and get updated. Stand out in the community of developers.

    Login with Github
    Login with Facebook
    Login with Google
    Or
    Remember Me

  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Why sign up to RapidAPI?

    • integrate
      Integrate APIs into your app
      Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
    • keys
      Save all API keys in one place
    • notifications
      Get notifications about API changes
    • stats
      Get stats and monitor API connections
    Sign up with Github
    Sign up with Facebook
    Sign up with Google
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Authentication

    Authenticate
    esccloses this view