🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 26, 2026

How to Send an SMS From Gravity Forms With Infobip

GravityExtra
How to Send an SMS From Gravity Forms With Infobip

A form entry that nobody reads for three hours is a lost lead. E-mail alerts get buried in a busy inbox, and a customer who has just booked wants to know at once that the booking worked. A text message is read within minutes. This tutorial shows how to send an SMS from Gravity Forms through your own Infobip account: an alert to your team, a confirmation to the visitor, the right text for the right entry, and a record on the entry of what was sent and whether it arrived.

Why send a text from a form

Three situations call for a text instead of an e-mail. Urgency: a new lead, an emergency call-out or a booking request should reach a person now. Confirmation: the visitor wants proof that the request arrived and to know what happens next. Information that matters on the spot: a time, an address, a reference. In all three, the message is short, it is read on a phone, and a missed e-mail costs money.

Infobip is a global messaging platform that many businesses already use for their texts. Sending from your own Infobip account keeps your senders, your prices, your logs and your reports in one place, and the texts go straight from your site to Infobip with nobody in the middle.

What you need

  • An Infobip account. Signing up is free and starts a 60 day trial without a card; during the trial Infobip sends only to the numbers you verified, from the sender ServiceSMS.
  • Your personal base URL (abc123.api.infobip.com) and an API key with the sms:message:send scope, both from the Infobip portal.
  • Gravity Forms 2.5 or newer and the Gravity Forms Infobip SMS Premium Add-on.
  • A Phone field in your form if you want to text the visitor, and their consent: a line on the form that says you will send a text.

Step 1: connect Infobip once

Install the add-on and open Forms → Settings → Infobip SMS. Activate your licence, then paste the base URL and the API key from the Infobip portal and save. Press Check the connection: the add-on asks Infobip for the balance and sends nothing. The key is encrypted before it is saved and never shown again, and the add-on only talks to a base URL under api.infobip.com.

Set the default country calling code of your customers, so a number typed as 0170 1234567 by a visitor in Germany becomes 49 170 1234567. If you have a registered sender name, enter it as the default sender; during the trial keep ServiceSMS.

The Infobip SMS settings screen in Gravity Forms: the licence box, the Infobip base URL, the encrypted API key, the default country code, the default sender, delivery reports, the daily cap and the Check the connection button
The settings: your own Infobip base URL and API key, stored encrypted, and the defaults for every feed.

Step 2: alert your team

Open the form, go to Settings → Infobip SMS and add a feed called Booking alert. In Send to, type the numbers of the people who should know, separated by commas. Then write the message with merge tags, for example: New booking from {Name:1}, {Plan:2} plan, call back on {Mobile:3}. Put the important words first, because that is what a locked phone shows.

Keep it inside one part when you can. A text with only standard letters and digits holds 160 characters in one part. One emoji or one letter outside that alphabet turns the whole text into the unicode format, where a part holds 70 characters. Infobip bills each part, so the transliteration option in More message options can save money for languages with special letters.

Step 3: confirm to the visitor

Add a second feed called Customer confirmation. In Send to, put the merge tag of the Phone field, for example {Mobile:3}. Write a friendly text: Hi {Name:1}, thanks for booking. We will text you the time. This feed can have its own sender, for example your shop name, while the team alert comes from a number your staff recognise.

An Infobip SMS feed: send to a typed number and the phone field of the form, the sender, the message with merge tags, the link option, the more options table and the condition
A feed: who gets the text, from which sender, what it says and when it is sent.

Step 4: send the right text to the right entry

Turn on the Condition of a feed to send it only for some entries. The rules are the ones Gravity Forms uses for notifications, so they are familiar.

  • Send the customer confirmation only for the Premium plan, and an e-mail to everyone else.
  • Send the team alert only when the Urgent box is ticked, or only when the amount is over a limit.
  • Send to the regional manager only when the country is one they cover.

More message options lets you add your own reference to every text (callbackData), group texts of a campaign in your Infobip reports (campaignReferenceId), stop delivery attempts after a number of minutes for time-critical messages (validityPeriod), or send a flash SMS that opens on the screen at once.

Step 5: see what was sent, and whether it arrived

The visitor sees the confirmation at once: the texts are sent by a background job right after the submission. When Infobip has answered, the entry gets a note: how many texts were accepted, each number masked to its last four digits, the message id and the number of parts. A number that Infobip refused is listed with Infobip’s own status and description.

A minute later the add-on starts asking Infobip for the delivery report of each text, again after 5 and 15 minutes and up to 24 hours, until each one has a final status. The entry box shows delivered or not delivered for every number, with Infobip’s reason when it failed.

The Infobip SMS box on a Gravity Forms entry: each number masked, accepted, its message id and the delivery report
Every text on the entry: masked number, message id and the delivery report from Infobip.

Use the merge tags {infobip_status}, {infobip_message_id}, {infobip_delivery} and {infobip_sent_count} in notifications, and the notification events Infobip: the SMS was sent, could not be sent, was delivered or was not delivered, so your team hears about a problem at once.

What happens when something goes wrong

Networks fail, and a text that arrives twice annoys a customer and costs twice. The add-on handles that in three ways.

  • Every text has its own message id, and Infobip refuses an id it has already seen. A repeated request cannot deliver the same text twice.
  • If Infobip cannot be reached at all, or asks to slow down, nothing was sent. The add-on tries again after 1 minute, 5 minutes, 30 minutes, 2 hours and 12 hours.
  • If the request may have reached Infobip but no clear answer came back, the add-on does not send it again: it marks the entry as unsure and the note gives the message id to look for in your Infobip logs. If the text is not there, use Send Infobip SMS again in the entry list.

A complete example

A dental clinic has an appointment request form with a name, a mobile number, a treatment and an Urgent pain box. Two feeds cover it. Urgent request goes to the clinic’s on-call phone, only when Urgent pain is ticked: Urgent: {Name:1}, {Treatment:4}, call {Mobile:3}. Patient confirmation goes to the patient’s mobile for every entry, from the clinic’s registered sender name: Thanks {Name:1}, we have your request and will call you today.

An urgent request from a patient who types a local number sends two texts: one to the on-call phone and one to the patient, with the number completed by the default country code. The entry shows both message ids, and a few minutes later two delivered reports. A normal request sends only the confirmation.

Good practice for texting visitors

  • Say on the form that you will text, and get consent where the law asks for it.
  • Use a sender your patients or customers recognise, and register it where the country requires it.
  • Keep private details out of the text: a phone can be read by anyone who picks it up.
  • Set a daily cap in the settings so a wave of spam submissions cannot empty your Infobip balance.

Questions

Do I need a developer to set it up?

No. Everything is in two screens: the add-on settings for your Infobip account and the feed settings of each form. Developers can use a filter to change the message or the numbers.

Is my API key safe?

It is encrypted with a key made from your site’s security salts, never shown again, and only sent to your Infobip base URL. Notes and logs never contain it.

Who pays for the texts?

You do, to Infobip, at your own price. The add-on never sends anything through GravityExtra.

Which Gravity Forms versions does it support?

Gravity Forms 2.5 and newer. It is tested with Gravity Forms 3.1.2 on PHP 8.3 and Gravity Forms 2.9.8 on PHP 7.4.

Get started

The Gravity Forms Infobip SMS Premium Add-on sends a text through your own Infobip account for every matching submission, to your team, to the visitor or both, with merge tags, conditions, safe retries and delivery reports. See the features, the price and the setup guide on the add-on page.

See the Infobip SMS add-on

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr