{"id":677,"date":"2011-08-26T15:35:10","date_gmt":"2011-08-26T19:35:10","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/08\/26\/how-to-set-up-formmail\/"},"modified":"2026-08-26T15:07:45","modified_gmt":"2026-08-26T19:07:45","slug":"how-to-set-up-formmail","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/","title":{"rendered":"How to Set up FormMail"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This guide shows you how to set up FormMail, the NMS Perl script that converts a contact form submission into an email message. FormMail runs as a Common Gateway Interface (CGI) script on a VPS or Dedicated Server. If you host on Shared hosting, read the warning first.<\/p>\n\n\n\n<p class=\"alert alert-warning wp-block-paragraph\"><strong>Warning:<\/strong> FormMail is not supported on InMotion Hosting Shared hosting plans, and mail sent through it is blocked on Shared servers. The script sends mail without authenticating with a mailbox, and Shared servers block unauthenticated script-generated mail. If you host on Shared, use SMTP authentication instead, which is the recommended method for sending mail from your site: <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-phpmailer-to-send-mail-through-php\/\">Using PHPMailer to Send Mail through PHP<\/a>.<\/p>\n\n\n\n<p class=\"alert alert-success wp-block-paragraph\"><strong>Notice:<\/strong> Before you begin, download the FormMail &#8220;compat&#8221; package from <a href=\"https:\/\/nms-cgi.sourceforge.net\/scripts.shtml.html\" target=\"_blank\" rel=\"noopener\">NMS FormMail<\/a>. The compat package is the easiest one to install.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Set Up FormMail<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Customize the FormMail.pl script<\/h3>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li>Un-compress the file you downloaded, then upload <code>FormMail.pl<\/code> to the <code>cgi-bin<\/code> directory. You only need <code>FormMail.pl<\/code>; the rest of the download is documentation.<\/li>\n\n\n\n<li>Open <code>FormMail.pl<\/code> and find the <code>@referers<\/code> line. Replace the example entries with your own domain, both with and without <code>www<\/code>, separated by a single space:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">@referers = <\/span><span style=\"color: #9ECBFF\">qw(example.com www.example.com)<\/span><span style=\"color: #E1E4E8\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol start=\"3\" class=\"wp-block-list article_list\">\n<li>Find the <code>@allow_mail_to<\/code> line. List the email addresses that the form is allowed to send to, separated by a single space, and remove <code>localhost<\/code> from the list:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">@allow_mail_to = <\/span><span style=\"color: #9ECBFF\">qw(webmaster@example.com admin@example.com)<\/span><span style=\"color: #E1E4E8\">;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol start=\"4\" class=\"wp-block-list article_list\">\n<li>Save <code>FormMail.pl<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Configure your contact form<\/h3>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li>Point your contact form&#8217;s <code>action<\/code> attribute at the script:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">&lt;<\/span><span style=\"color: #85E89D\">form<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">ac<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">Code<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">tion<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;https:\/\/www.example.com\/cgi-bin\/FormMail.pl&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">method<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;post&quot;<\/span><span style=\"color: #E1E4E8\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note:<\/strong> Replace <code>example.com<\/code> with your own domain, and update the path if you uploaded <code>FormMail.pl<\/code> to a location other than <code>cgi-bin<\/code>.<\/p>\n\n\n\n<ol start=\"2\" class=\"wp-block-list article_list\">\n<li>Add hidden fields to your form so FormMail knows where to send the submission. Start with the <code>recipient<\/code> field, which sets the email address the submission is sent to:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">&lt;<\/span><span style=\"color: #85E89D\">input<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">type<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;hidden&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">name<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;recipient&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">value<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;webmaster@example.com,admin@example.com&quot;<\/span><span style=\"color: #E1E4E8\"> \/&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"alert alert-warning wp-block-paragraph\"><strong>Warning:<\/strong> Every address you list in <code>recipient<\/code> must also appear in the <code>@allow_mail_to<\/code> line in <code>FormMail.pl<\/code>. If it does not, FormMail returns a bad recipient error page instead of sending the message.<\/p>\n\n\n\n<ol start=\"3\" class=\"wp-block-list article_list\">\n<li>Add a <code>subject<\/code> field to set the subject line of the email:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">&lt;<\/span><span style=\"color: #85E89D\">input<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">type<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;hidden&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">name<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;subject&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">value<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;From the contact form&quot;<\/span><span style=\"color: #E1E4E8\"> \/&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<ol start=\"4\" class=\"wp-block-list article_list\">\n<li>Optionally, add a <code>redirect<\/code> field to send the visitor to a thank-you page after a successful submission:<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono-NL.ttf\" style=\"font-size:clamp(16px, 1rem, 24px);font-family:Code-Pro-JetBrains-Mono-NL,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #E1E4E8\">&lt;<\/span><span style=\"color: #85E89D\">input<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">type<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;hidden&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">name<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;redirect&quot;<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #B392F0\">value<\/span><span style=\"color: #E1E4E8\">=<\/span><span style=\"color: #9ECBFF\">&quot;https:\/\/www.example.com\/thankyou.html&quot;<\/span><span style=\"color: #E1E4E8\"> \/&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note:<\/strong> Replace the URL with your own thank-you page. If you leave this field out, FormMail displays its own confirmation page listing the submitted fields.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Change file permissions<\/h3>\n\n\n\n<p class=\"alert alert-danger wp-block-paragraph\"><strong>Important:<\/strong> Set the permissions on <code>FormMail.pl<\/code> to 755. The file needs execute permission, or the web server cannot run the script and your contact form returns an error instead of sending mail.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Change permissions using cPanel<\/h4>\n\n\n\n<ol class=\"wp-block-list article_list\">\n<li>Log in to <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">cPanel<\/a>.<\/li>\n\n\n\n<li>Under <strong>Files<\/strong>, click <strong>File Manager<\/strong>.<\/li>\n\n\n\n<li>Navigate to <code>public_html<\/code>, then <code>cgi-bin<\/code>.<\/li>\n\n\n\n<li>Right-click <code>FormMail.pl<\/code> and select <strong>Change Permissions<\/strong>. You can also select the file and click <strong>Permissions<\/strong> in the toolbar.<\/li>\n\n\n\n<li>Set <strong>User<\/strong> to read, write, and execute (rwx), and set <strong>Group<\/strong> and <strong>World<\/strong> to read and execute (r-x).<\/li>\n\n\n\n<li>Click <strong>Change Permissions<\/strong> to save.<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">Change permissions using SFTP<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If you manage your files with a Secure File Transfer Protocol (SFTP) client instead, connect to your server, browse to the <code>cgi-bin<\/code> directory, and right-click <code>FormMail.pl<\/code>. Choose the option for changing file permissions, which most clients label <strong>File Permissions<\/strong> or <strong>CHMOD<\/strong>, then set the value to 755.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Your FormMail script is now set up and ready to process submissions from your contact form. Submit a test entry to confirm mail arrives at the address you configured. If delivery does not go through, check that the recipient address also appears in the <code>@allow_mail_to<\/code> line.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This guide shows you how to set up FormMail, the NMS Perl script that converts a contact form submission into an email message. FormMail runs as a Common Gateway Interface (CGI) script on a VPS or Dedicated Server. If you host on Shared hosting, read the warning first. Warning: FormMail is not supported on InMotion<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_ayudawp_aiss_exclude":false,"_ayudawp_aiss_exclude_summary":false,"_ayudawp_aiss_summary":"This guide shows you how to set up FormMail, the NMS Perl script that converts a contact form submission into an email message. Notice: Before you begin, download the FormMail \"compat\" package from NMS FormMail. Your FormMail script is now set up and ready to process submissions from your contact form.","_ayudawp_aiss_summary_provider":"extractive","_ayudawp_aiss_summary_hash":"805fe558eb012e3afa9b2d4ccaf5829201635c14","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4288],"tags":[],"class_list":["post-677","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Set up FormMail | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"Set up the NMS FormMail script on a VPS or Dedicated Server. FormMail is blocked on Shared hosting, so use PHPMailer with SMTP authentication there.\" \/>\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.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set up FormMail | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"Set up the NMS FormMail script on a VPS or Dedicated Server. FormMail is blocked on Shared hosting, so use PHPMailer with SMTP authentication there.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-08-26T19:35:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-26T19:07:45+00:00\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/person\\\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"How to Set up FormMail\",\"datePublished\":\"2011-08-26T19:35:10+00:00\",\"dateModified\":\"2026-08-26T19:07:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/\"},\"wordCount\":536,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/\",\"name\":\"How to Set up FormMail | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#website\"},\"datePublished\":\"2011-08-26T19:35:10+00:00\",\"dateModified\":\"2026-08-26T19:07:45+00:00\",\"description\":\"Set up the NMS FormMail script on a VPS or Dedicated Server. FormMail is blocked on Shared hosting, so use PHPMailer with SMTP authentication there.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/website\\\/how-to-set-up-formmail\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Set up FormMail\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/wp-content\\\/uploads\\\/2023\\\/02\\\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/inmotionhosting\\\/\",\"https:\\\/\\\/x.com\\\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/#\\\/schema\\\/person\\\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\\\/\\\/www.inmotionhosting.com\\\/support\\\/author\\\/bradm\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set up FormMail | InMotion Hosting","description":"Set up the NMS FormMail script on a VPS or Dedicated Server. FormMail is blocked on Shared hosting, so use PHPMailer with SMTP authentication there.","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.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/","og_locale":"en_US","og_type":"article","og_title":"How to Set up FormMail | InMotion Hosting","og_description":"Set up the NMS FormMail script on a VPS or Dedicated Server. FormMail is blocked on Shared hosting, so use PHPMailer with SMTP authentication there.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-08-26T19:35:10+00:00","article_modified_time":"2026-08-26T19:07:45+00:00","author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"How to Set up FormMail","datePublished":"2011-08-26T19:35:10+00:00","dateModified":"2026-08-26T19:07:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/"},"wordCount":536,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/","name":"How to Set up FormMail | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2011-08-26T19:35:10+00:00","dateModified":"2026-08-26T19:07:45+00:00","description":"Set up the NMS FormMail script on a VPS or Dedicated Server. FormMail is blocked on Shared hosting, so use PHPMailer with SMTP authentication there.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-set-up-formmail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Set up FormMail"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":4288,"name":"Website","slug":"website","link":"https:\/\/www.inmotionhosting.com\/support\/website\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=677"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/677\/revisions"}],"predecessor-version":[{"id":900380,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/677\/revisions\/900380"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}