[et_pb_section bb_built=”1″][et_pb_row][et_pb_column type=”4_4″][et_pb_text _builder_version=”3.5″]
In this tutorial, I am going to show you how to send an SMS/ text message notification form your WordPress website, without the need for a plugin. The process is pretty straightforward and easy to do.
Every cell phone carrier has an SMS Gateway. This is an email domain that all text messages are sent through. The table below shows the SMS gateways for most popular carriers:
|Provider||Email-to-SMS Address Format|
|Boost Mobile||[email protected]|
|US Cellular||[email protected]|
|Virgin Mobile||[email protected]|
Sending an email to this gateway will send you an SMS. You simply add your cell phone number to the gateway domain. For example, if your phone number is 800-763-8864, and your carrier is AT&T, an email sent to [email protected]@txt.att.net would be sent to your phone as a text message.
This means that getting your WordPress site to send you an SMS is a simple matter of adding your carrier email address to the notification email field. To do this, go to wp-admin>>general and enter your carrier email in the email address field, as shown below:
Note however that because WordPress only provides one notification email field, you will not get your messages to your business or personal email.
But what if you want to have a contact form or any other kind of form send you a message? To do that, find the form you want to trigger an SMS, and set the notification email to the carrier email. Let’s configure a form created with gravity forms an example.
First, go to your wp-admin and navigate to the Gravity Forms form you want to send a text message from. In this example, I have created a simple email form. Hover over the form title, then over Settings. From the drop-down, click “Notifications”.
With plugins like Gravity Forms, you can create multiple notifications. So you can create a notification to send to your email, and one to send an SMS to your phone. By default, we already have a notification going to our admin email address. So let’s create one to send us a text message. Click “Add new”
Next, we need to give our notification a name. Let’s call this one “SMS” Leave the Send to field set to email, and enter your carrier email address in the “Send to Email field”
The remaining fields can be filled out to suit your needs, When you are done, click Save Notification. Now, place the form on any page or widget you want it to appear on.
Finally, let’s test our form and make sure it works! Visit the page where you inserted this form. Fill the form out and submit. Within a minute or so, you should get a text message on your phone. Please note that with some carriers, there may be a delay as long as 5 minutes before the text message is sent to your phone.
Now you know how to make your website send you SMS notifications without plugins or third party services. See, I told you this would be easy!