{"id":761,"date":"2011-11-17T16:36:52","date_gmt":"2011-11-17T16:36:52","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/11\/17\/what-is-the-path-to-sendmail\/"},"modified":"2023-08-07T11:10:30","modified_gmt":"2023-08-07T15:10:30","slug":"what-is-the-path-to-sendmail","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/","title":{"rendered":"What is the path to sendmail?"},"content":{"rendered":"<h2>What is Sendmail?<\/h2>\n<p>Sendmail is a very popular Mail Transport Agent (MTA). It is used to send email between servers. It runs in the background on our servers, and most users generally don&#8217;t ever need to interact with it directly.<\/p>\n<h2>What is the path to Sendmail?<\/h2>\n<p>Sendmail is located at:<\/p>\n<p class=\"code_block\">\/usr\/sbin\/sendmail<\/p>\n<p>If you have VPS Hosting or Dedicated Hosting, you can find the path by using the &#8220;which&#8221; command:<\/p>\n<p class=\"code_block\">user@vps#### [\/]# which sendmail<br \/>\n\/usr\/sbin\/sendmail<\/p>\n<h2>A Command Line Example Using Sendmail<\/h2>\n<p>Users generally don&#8217;t need to call sendmail directly from the <a href=\"\/support\/server\/ssh\/what-is-shell-access\/\">command line<\/a>, but in case you&#8217;re looking for it for a specific reason, we&#8217;ve included an example below that shows how to send an email from the command line using sendmail:<\/p>\n<pre class=\"code_block\"> root@vps#### [\/]# \/usr\/sbin\/sendmail -t To: user@domain.com From: sender_user@domain.com Subject: This is the subject of the email    This is the body of the email. . \nroot@#### [\/]#<\/pre>\n<h2>Exploring Email Sending Alternatives<\/h2>\n<p>In addition to locating the path to sendmail, remember that sendmail serves as a command-line tool for direct email transmission. For PHP applications, consider employing PHPMailer \u2013 a versatile solution offering secure and feature-rich email functionality. To delve deeper into utilizing PHPMailer, we recommend consulting our <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-the-php-mail-function-to-send-emails\/\">PHPMailer tutorial<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is Sendmail? Sendmail is a very popular Mail Transport Agent (MTA). It is used to send email between servers. It runs in the background on our servers, and most users generally don&#8217;t ever need to interact with it directly. What is the path to Sendmail? Sendmail is located at: \/usr\/sbin\/sendmail If you have VPS<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\"> 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_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-761","post","type-post","status-publish","format-standard","hentry","category-email"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is the path to sendmail? | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"The path to sendmail is \/usr\/sbin\/sendmail\" \/>\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\/email\/what-is-the-path-to-sendmail\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is the path to sendmail? | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"The path to sendmail is \/usr\/sbin\/sendmail\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\" \/>\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-11-17T16:36:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-07T15:10:30+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"What is the path to sendmail?\",\"datePublished\":\"2011-11-17T16:36:52+00:00\",\"dateModified\":\"2023-08-07T15:10:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\"},\"wordCount\":186,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Email\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\",\"name\":\"What is the path to sendmail? | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2011-11-17T16:36:52+00:00\",\"dateModified\":\"2023-08-07T15:10:30+00:00\",\"description\":\"The path to sendmail is \/usr\/sbin\/sendmail\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is the path to sendmail?\"}]},{\"@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":"What is the path to sendmail? | InMotion Hosting","description":"The path to sendmail is \/usr\/sbin\/sendmail","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\/email\/what-is-the-path-to-sendmail\/","og_locale":"en_US","og_type":"article","og_title":"What is the path to sendmail? | InMotion Hosting","og_description":"The path to sendmail is \/usr\/sbin\/sendmail","og_url":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-11-17T16:36:52+00:00","article_modified_time":"2023-08-07T15:10:30+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":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"What is the path to sendmail?","datePublished":"2011-11-17T16:36:52+00:00","dateModified":"2023-08-07T15:10:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/"},"wordCount":186,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Email"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/","url":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/","name":"What is the path to sendmail? | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2011-11-17T16:36:52+00:00","dateModified":"2023-08-07T15:10:30+00:00","description":"The path to sendmail is \/usr\/sbin\/sendmail","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/email\/what-is-the-path-to-sendmail\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"What is the path to sendmail?"}]},{"@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":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/761","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=761"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/761\/revisions"}],"predecessor-version":[{"id":105985,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/761\/revisions\/105985"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}