{"id":19167,"date":"2026-11-19T00:30:35","date_gmt":"2026-11-18T19:00:35","guid":{"rendered":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/"},"modified":"2026-11-19T00:53:38","modified_gmt":"2026-11-18T19:23:38","slug":"send-sms-from-website-form","status":"publish","type":"post","link":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/","title":{"rendered":"Send an SMS when someone fills your website form (PHP, WordPress, no-code)"},"content":{"rendered":"<p>To send an SMS when someone fills your website form, your server calls the Fast2SMS DLT SMS API right after the form is saved. The visitor gets a &#8220;thank you, we got your request&#8221; SMS, and you can also get a text about the new lead. This guide gives a ready PHP example, a WordPress (Contact Form 7) snippet and a no-code option, plus the DLT setup you need first.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Text every new lead in seconds<\/strong><p>Create a free Fast2SMS account, add your DLT template and connect your website form to the SMS API.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Before you start<\/h2>\n<ul>\n<li>A Fast2SMS account with wallet balance.<\/li>\n<li>An approved DLT header (Sender ID) and a content template for the form reply, added in <strong>DLT Manager<\/strong>. For example: &#8220;Hi {#var#}, thanks for contacting Demo Traders. We will call you within {#var#}. &#8211; Demo Traders&#8221;. A reply to a request the customer made is usually a service message. Use the same category as on your DLT portal.<\/li>\n<li>The template&#8217;s <strong>Message ID<\/strong> from its card in <strong>DLT Manager<\/strong> &gt; <strong>Content Template<\/strong>. The API uses this short number, not the long DLT Template ID.<\/li>\n<li>Your <a href=\"\/help\/api-key-find-reset\/\">API key<\/a> from <strong>Account Setting<\/strong> &gt; <strong>API Key<\/strong>.<\/li>\n<\/ul>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"API Key page with a masked Authorization Key, View and Reset buttons and the API Access switch turned on\"><figcaption>Copy your Authorization Key with View.<\/figcaption><\/figure>\n<div class=\"f2s-note f2s-note--warn\">\n<p>Call the API only from your server. Never put the API key in the form&#8217;s HTML or JavaScript, where anyone can copy it.<\/p>\n<\/div>\n<h2>How it works<\/h2>\n<ol class=\"f2s-steps\">\n<li>\n<h3>The visitor submits the form<\/h3>\n<p>Your server checks the fields as usual and saves the enquiry.<\/p>\n<\/li>\n<li>\n<h3>Your server cleans the mobile number<\/h3>\n<p>Keep only the digits, drop a leading 91 and check that what is left is a 10-digit Indian mobile number starting with 6, 7, 8 or 9.<\/p>\n<\/li>\n<li>\n<h3>Your server calls the DLT SMS API<\/h3>\n<p>Send a POST to <code>https:\/\/www.fast2sms.com\/dev\/bulkV2<\/code> with <code>route=dlt<\/code>, your <code>sender_id<\/code>, the Message ID in <code>message<\/code>, the values for the template&#8217;s variables in <code>variables_values<\/code> (separated by <code>|<\/code>) and the number in <code>numbers<\/code>. Each variable value can be up to 40 characters.<\/p>\n<\/li>\n<li>\n<h3>You check the response<\/h3>\n<p>A success looks like <code>{\"return\":true,\"request_id\":\"...\",\"message\":[\"SMS sent successfully.\"]}<\/code>. Always check <code>return<\/code>. A low wallet balance can come back with HTTP 200 and <code>\"return\":false<\/code>. Every call also shows in <strong>API Logs<\/strong>.<\/p>\n<figure class=\"f2s-shot\"><img src=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-logs-hd-6-scaled.webp\" width=\"1440\" height=\"900\" loading=\"lazy\" decoding=\"async\" alt=\"API Logs page listing API calls with endpoint, HTTP code, response message, Success or Failed status and time\"><figcaption>API Logs show each request and the response.<\/figcaption><\/figure>\n<\/li>\n<\/ol>\n<h2>PHP example<\/h2>\n<p>Put this in the script that handles your form, after you save the enquiry.<\/p>\n<pre><code class=\"language-php\">&lt;?php\nfunction f2s_send_dlt_sms($mobile, array $vars) {\n    $mobile = preg_replace('\/\\D\/', '', $mobile);\n    if (strlen($mobile) &gt; 10 &amp;&amp; substr($mobile, 0, 2) === '91') {\n        $mobile = substr($mobile, 2);\n    }\n    if (preg_match('\/^[6-9]\\d{9}$\/', $mobile) === 0) {\n        return false; \/\/ not a valid Indian mobile number\n    }\n\n    $fields = [\n        'route'            =&gt; 'dlt',\n        'sender_id'        =&gt; 'DEMOTR',   \/\/ your approved Sender ID, exact case\n        'message'          =&gt; '10001',    \/\/ Message ID from DLT Manager\n        'variables_values' =&gt; implode('|', $vars),\n        'numbers'          =&gt; $mobile,\n    ];\n\n    $ch = curl_init('https:\/\/www.fast2sms.com\/dev\/bulkV2');\n    curl_setopt_array($ch, [\n        CURLOPT_POST           =&gt; true,\n        CURLOPT_POSTFIELDS     =&gt; http_build_query($fields),\n        CURLOPT_HTTPHEADER     =&gt; ['authorization: YOUR_API_KEY'],\n        CURLOPT_RETURNTRANSFER =&gt; true,\n        CURLOPT_TIMEOUT        =&gt; 15,\n    ]);\n    $result = json_decode(curl_exec($ch), true);\n    curl_close($ch);\n\n    return isset($result['return']) &amp;&amp; $result['return'] === true;\n}\n\n\/\/ after the enquiry is saved:\n$name = mb_substr(trim($_POST['name'] ?? ''), 0, 40);\nf2s_send_dlt_sms($_POST['mobile'] ?? '', [$name, '2 hours']);<\/code><\/pre>\n<p>Keep the API key in a config file or environment variable, not in the code you commit.<\/p>\n<h2>WordPress: Contact Form 7<\/h2>\n<p>Add this to your theme&#8217;s <code>functions.php<\/code> or a small custom plugin, together with the <code>f2s_send_dlt_sms()<\/code> function above. It runs after Contact Form 7 sends its email. Change <code>your-name<\/code> and <code>your-phone<\/code> to the field names in your form.<\/p>\n<pre><code class=\"language-php\">add_action('wpcf7_mail_sent', function ($contact_form) {\n    $submission = WPCF7_Submission::get_instance();\n    if ($submission === null) {\n        return;\n    }\n    $data  = $submission-&gt;get_posted_data();\n    $name  = mb_substr(sanitize_text_field($data['your-name'] ?? ''), 0, 40);\n    $phone = sanitize_text_field($data['your-phone'] ?? '');\n    f2s_send_dlt_sms($phone, [$name, '2 hours']);\n});<\/code><\/pre>\n<p>Other form plugins have similar &#8220;after submit&#8221; hooks. The API call stays the same.<\/p>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Get your API key and start<\/strong><p>Sign up for Fast2SMS, copy your API key and send your first form reply SMS today.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>No-code option<\/h2>\n<p>If your form tool can send its entries to Pabbly Connect, Zapier or n8n, you can add a step there that calls the Fast2SMS API with the same fields. If your forms save to Google Sheets, an Apps Script can send the SMS for each new row. See the related guides below.<\/p>\n<h2>Protect the form from SMS abuse<\/h2>\n<p>A form that sends an SMS to any number typed into it can be misused by bots to run up your bill. Keep it safe:<\/p>\n<ul>\n<li>allow one SMS per number and per visitor in a short time window,<\/li>\n<li>add bot protection to the form,<\/li>\n<li>switch on <strong>API Security<\/strong> so only your server&#8217;s IP can use your key,<\/li>\n<li>watch your wallet with a low balance alert.<\/li>\n<\/ul>\n<h2>Common problems and fixes<\/h2>\n<div class=\"f2s-facts\">\n<table>\n<thead>\n<tr>\n<th>Error<\/th>\n<th>Fix<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Invalid Sender ID<\/td>\n<td>Use the approved Sender ID exactly as in <a href=\"\/help\/dlt-manager-entity-sender-template-guide\/\">DLT Manager<\/a>, same capital letters.<\/td>\n<\/tr>\n<tr>\n<td>Invalid Message ID<\/td>\n<td>Use the Message ID from the template card, not the 19-digit DLT Template ID.<\/td>\n<\/tr>\n<tr>\n<td>Invalid Numbers<\/td>\n<td>Clean the number to 10 digits before calling the API.<\/td>\n<\/tr>\n<tr>\n<td>IP is blacklisted from Dev API section<\/td>\n<td>API Security is on. Whitelist your server&#8217;s IP.<\/td>\n<\/tr>\n<tr>\n<td>SMS sent but not received<\/td>\n<td>Check the number&#8217;s status in the Delivery Report. The variable values must fit the template.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<section class=\"f2s-faq\">\n<h2>Frequently asked questions<\/h2>\n<h3>How do I integrate an SMS API into my website?<\/h3>\n<p>Call the Fast2SMS DLT SMS API from your server code after the form is saved, with your Sender ID, the template&#8217;s Message ID and the number.<\/p>\n<h3>Do I need DLT to send SMS from my website?<\/h3>\n<p>Yes. The reply must use an approved DLT header and template.<\/p>\n<h3>Can I get an SMS myself when someone fills the form?<\/h3>\n<p>Yes. Register a template for the lead alert and call the API a second time with your own number.<\/p>\n<h3>Can I send an OTP to verify the form&#8217;s phone number?<\/h3>\n<p>Yes. Use <a href=\"\/help\/smart-otp-setup-guide-fast2sms\/\">Smart OTP<\/a>: call send when the visitor enters the number and verify before you accept the form.<\/p>\n<h3>Is the SMS charged if it fails?<\/h3>\n<p>DLT SMS are charged when sent to the operator. Failed numbers are not refunded automatically, so validate numbers first.<\/p>\n<\/section>\n<aside class=\"f2s-cta\" aria-label=\"Get started with Fast2SMS\"><div class=\"f2s-cta__copy\"><strong class=\"f2s-cta__title\">Turn form fills into instant replies<\/strong><p>Open your Fast2SMS account, add your template and connect your website in a few lines of code.<\/p><\/div><div class=\"f2s-cta__actions\"><a class=\"f2s-cta__btn f2s-cta__btn--primary\" href=\"https:\/\/www.fast2sms.com\/\"><span>Sign up free<\/span> <span class=\"f2sh-btn__arrow\" aria-hidden=\"true\">&rarr;<\/span><\/a><a class=\"f2s-cta__btn f2s-cta__btn--ghost\" href=\"https:\/\/www.fast2sms.com\/meet\/\" target=\"_blank\" rel=\"noopener\">Book a free meeting<\/a><\/div><\/aside>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"\/help\/dlt-sms-api-guide\/\">DLT SMS API guide<\/a><\/li>\n<li><a href=\"\/help\/php-sms-api\/\">Send SMS with PHP<\/a><\/li>\n<li><a href=\"\/help\/otp-verification-signup-form\/\">OTP verification on a sign-up form<\/a><\/li>\n<li><a href=\"\/help\/fast2sms-pabbly-zapier-n8n-integration\/\">Fast2SMS with Pabbly, Zapier and n8n<\/a><\/li>\n<li><a href=\"\/help\/google-sheets-send-sms-apps-script\/\">Send SMS from Google Sheets<\/a><\/li>\n<li><a href=\"\/help\/api-security-ip-whitelist\/\">API Security: whitelist your server IP<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>To send an SMS when someone fills your website form, your server calls the Fast2SMS DLT SMS API right after the form is saved. The visitor gets a &#8220;thank you, we got your request&#8221; SMS, and you can also get a text about the new lead. This guide gives a ready PHP example, a WordPress [&hellip;]<\/p>\n","protected":false},"featured_media":17782,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,13],"tags":[],"class_list":["post-19167","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api","category-bulk-sms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Send SMS From Your Website Form (PHP, WordPress) | Fast2SMS<\/title>\n<meta name=\"description\" content=\"Send an SMS from your website form with the Fast2SMS DLT SMS API. PHP and Contact Form 7 code, no-code options and tips to protect your form from abuse.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Send SMS From Your Website Form (PHP, WordPress) | Fast2SMS\" \/>\n<meta property=\"og:description\" content=\"Send an SMS from your website form with the Fast2SMS DLT SMS API. PHP and Contact Form 7 code, no-code options and tips to protect your form from abuse.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/\" \/>\n<meta property=\"og:site_name\" content=\"Fast2SMS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Fast2SMS\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-18T19:00:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-18T19:23:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@fast2sms\" \/>\n<meta name=\"twitter:site\" content=\"@fast2sms\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/\"},\"author\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"headline\":\"Send an SMS when someone fills your website form (PHP, WordPress, no-code)\",\"datePublished\":\"2026-11-18T19:00:35+00:00\",\"dateModified\":\"2026-11-18T19:23:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/\"},\"wordCount\":905,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-key-hd-scaled.webp\",\"articleSection\":[\"API\",\"Bulk SMS\"],\"inLanguage\":\"en-IN\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/\",\"name\":\"Send SMS From Your Website Form (PHP, WordPress) | Fast2SMS\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-key-hd-scaled.webp\",\"datePublished\":\"2026-11-18T19:00:35+00:00\",\"dateModified\":\"2026-11-18T19:23:38+00:00\",\"description\":\"Send an SMS from your website form with the Fast2SMS DLT SMS API. PHP and Contact Form 7 code, no-code options and tips to protect your form from abuse.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#breadcrumb\"},\"inLanguage\":\"en-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-IN\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-key-hd-scaled.webp\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/api-key-hd-scaled.webp\",\"width\":2560,\"height\":1600,\"caption\":\"API Key page with masked Authorization Key, View and Reset buttons and API Access switched on\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/send-sms-from-website-form\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/api\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Send an SMS when someone fills your website form (PHP, WordPress, no-code)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/help\\\/\",\"name\":\"Fast2SMS\",\"description\":\"Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\"},\"inLanguage\":\"en-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#organization\",\"name\":\"Fast2SMS\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\",\"url\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"contentUrl\":\"https:\\\/\\\/www.fast2sms.com\\\/Fast2SMS.png\",\"caption\":\"Fast2SMS\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fast2sms.com\\\/#logo\"},\"email\":\"support@fast2sms.com\",\"telephone\":\"+91-6262778822\",\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Fast2SMS\",\"https:\\\/\\\/www.instagram.com\\\/fast2sms\",\"https:\\\/\\\/x.com\\\/fast2sms\",\"https:\\\/\\\/www.youtube.com\\\/Fast2SMSofficial\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/fast2sms\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Send SMS From Your Website Form (PHP, WordPress) | Fast2SMS","description":"Send an SMS from your website form with the Fast2SMS DLT SMS API. PHP and Contact Form 7 code, no-code options and tips to protect your form from abuse.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/","og_locale":"en_US","og_type":"article","og_title":"Send SMS From Your Website Form (PHP, WordPress) | Fast2SMS","og_description":"Send an SMS from your website form with the Fast2SMS DLT SMS API. PHP and Contact Form 7 code, no-code options and tips to protect your form from abuse.","og_url":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/","og_site_name":"Fast2SMS","article_publisher":"https:\/\/www.facebook.com\/Fast2SMS\/","article_published_time":"2026-11-18T19:00:35+00:00","article_modified_time":"2026-11-18T19:23:38+00:00","og_image":[{"width":2560,"height":1600,"url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp","type":"image\/webp"}],"twitter_card":"summary_large_image","twitter_creator":"@fast2sms","twitter_site":"@fast2sms","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#article","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/"},"author":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"headline":"Send an SMS when someone fills your website form (PHP, WordPress, no-code)","datePublished":"2026-11-18T19:00:35+00:00","dateModified":"2026-11-18T19:23:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/"},"wordCount":905,"publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp","articleSection":["API","Bulk SMS"],"inLanguage":"en-IN"},{"@type":"WebPage","@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/","url":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/","name":"Send SMS From Your Website Form (PHP, WordPress) | Fast2SMS","isPartOf":{"@id":"https:\/\/www.fast2sms.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#primaryimage"},"image":{"@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp","datePublished":"2026-11-18T19:00:35+00:00","dateModified":"2026-11-18T19:23:38+00:00","description":"Send an SMS from your website form with the Fast2SMS DLT SMS API. PHP and Contact Form 7 code, no-code options and tips to protect your form from abuse.","breadcrumb":{"@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#breadcrumb"},"inLanguage":"en-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/"]}]},{"@type":"ImageObject","inLanguage":"en-IN","@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#primaryimage","url":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp","contentUrl":"https:\/\/www.fast2sms.com\/help\/wp-content\/uploads\/2026\/11\/api-key-hd-scaled.webp","width":2560,"height":1600,"caption":"API Key page with masked Authorization Key, View and Reset buttons and API Access switched on"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fast2sms.com\/help\/send-sms-from-website-form\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fast2sms.com\/help\/"},{"@type":"ListItem","position":2,"name":"API","item":"https:\/\/www.fast2sms.com\/help\/api\/"},{"@type":"ListItem","position":3,"name":"Send an SMS when someone fills your website form (PHP, WordPress, no-code)"}]},{"@type":"WebSite","@id":"https:\/\/www.fast2sms.com\/help\/#website","url":"https:\/\/www.fast2sms.com\/help\/","name":"Fast2SMS","description":"Help","publisher":{"@id":"https:\/\/www.fast2sms.com\/#organization"},"inLanguage":"en-IN"},{"@type":"Organization","@id":"https:\/\/www.fast2sms.com\/#organization","name":"Fast2SMS","url":"https:\/\/www.fast2sms.com\/","logo":{"@type":"ImageObject","@id":"https:\/\/www.fast2sms.com\/#logo","url":"https:\/\/www.fast2sms.com\/Fast2SMS.png","contentUrl":"https:\/\/www.fast2sms.com\/Fast2SMS.png","caption":"Fast2SMS"},"image":{"@id":"https:\/\/www.fast2sms.com\/#logo"},"email":"support@fast2sms.com","telephone":"+91-6262778822","sameAs":["https:\/\/www.facebook.com\/Fast2SMS","https:\/\/www.instagram.com\/fast2sms","https:\/\/x.com\/fast2sms","https:\/\/www.youtube.com\/Fast2SMSofficial","https:\/\/www.linkedin.com\/company\/fast2sms"]}]}},"_links":{"self":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/comments?post=19167"}],"version-history":[{"count":1,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19167\/revisions"}],"predecessor-version":[{"id":19417,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/posts\/19167\/revisions\/19417"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media\/17782"}],"wp:attachment":[{"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/media?parent=19167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/categories?post=19167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fast2sms.com\/help\/wp-json\/wp\/v2\/tags?post=19167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}