{"id":6429,"date":"2023-12-14T11:05:12","date_gmt":"2023-12-14T18:05:12","guid":{"rendered":"https:\/\/ioflood.com\/blog\/?p=6429"},"modified":"2023-12-14T11:05:51","modified_gmt":"2023-12-14T18:05:51","slug":"mailx-linux-command","status":"publish","type":"post","link":"https:\/\/ioflood.com\/blog\/mailx-linux-command\/","title":{"rendered":"mailx Command Guide | Send Emails from Linux Terminal"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/ioflood.com\/blog\/wp-content\/uploads\/2023\/12\/Graphic-of-Linux-screen-showcasing-mailx-command-emphasizing-email-sending-and-management-300x300.jpg\" alt=\"Graphic of Linux screen showcasing mailx command emphasizing email sending and management\" width=\"300\" height=\"300\" title=\"\"><\/figure>\n<\/div>\n<p>Are you finding it challenging to send emails directly from your Linux terminal? You&#8217;re not alone. Many developers grapple with this task, but there&#8217;s a tool that can make this process a breeze. Like a diligent postman, the mailx command in Linux is a handy utility that allows you to send emails, complete with attachments and personalized messages, without ever leaving the comfort of your terminal.<\/p>\n<p><strong>This guide will walk you through the basics to the advanced usage of the mailx command.<\/strong> We\u2019ll explore mailx&#8217;s core functionality, delve into its advanced features, and even discuss common issues and their solutions.<\/p>\n<p>So, let&#8217;s dive in and start mastering the mailx command in Linux!<\/p>\n<h2>TL;DR: How Do I Use the Mailx Command in Linux?<\/h2>\n<blockquote><p>\n  The <code>mailx<\/code> command in Linux is a utility for sending and receiving email. You can use it to send an email right from your terminal with the syntax: <code>echo 'Body of Message' | mailx -s 'Subject of Email' recepient@example.com<\/code>.\n<\/p><\/blockquote>\n<p>Here&#8217;s a simple example:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'Hello, World!' | mailx -s 'Test Email' user@ioflood.com\n<\/code><\/pre>\n<p>In this example, we&#8217;re using the <code>echo<\/code> command to create a message, &#8216;Hello, World!&#8217;, and then we&#8217;re piping that message into the <code>mailx<\/code> command. The <code>-s<\/code> option allows us to specify the subject of the email, &#8216;Test Email&#8217;, and finally, we&#8217;re sending the email to the address &#8216;user@example.com&#8217;.<\/p>\n<blockquote><p>\n  This is a basic way to use the mailx command in Linux, but there&#8217;s much more to learn about sending emails from the command line. Continue reading for more detailed information and advanced usage scenarios.\n<\/p><\/blockquote>\n<h2>Getting Started with Mailx Command<\/h2>\n<p>The mailx command in Linux is a powerful tool that lets you send emails directly from your command line. It&#8217;s simple, efficient, and incredibly flexible. Here&#8217;s a basic example of how to use the mailx command to send an email:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is the body of the email' | mailx -s 'My Subject' recipient@example.com\n\n# Output:\n# No output on the terminal. An email is sent to the recipient.\n<\/code><\/pre>\n<p>Here&#8217;s what&#8217;s happening in this command:<\/p>\n<ul>\n<li><code>echo 'This is the body of the email'<\/code> generates the content of the email.<\/li>\n<li>The <code>|<\/code> character pipes (transfers) this content into the mailx command.<\/li>\n<li><code>-s 'My Subject'<\/code> sets the subject of the email.<\/li>\n<li><code>recipient@example.com<\/code> is the email address of the recipient.<\/li>\n<\/ul>\n<p>This command sends an email with the subject &#8216;My Subject&#8217; and the body &#8216;This is the body of the email&#8217; to the email address &#8216;recipient@example.com&#8217;.<\/p>\n<h3>Understanding Mailx Command Options<\/h3>\n<p>The mailx command provides several options that allow you to customize your emails:<\/p>\n<ul>\n<li><code>-s<\/code> specifies the subject of the email.<\/li>\n<li><code>-c<\/code> sends a carbon copy of the email to the specified address.<\/li>\n<li><code>-b<\/code> sends a blind carbon copy of the email to the specified address.<\/li>\n<\/ul>\n<p>For example, to send a carbon copy of an email, you would use the <code>-c<\/code> option like this:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is the body of the email' | mailx -s 'My Subject' -c cc@example.com recipient@example.com\n\n# Output:\n# No output on the terminal. An email is sent to the recipient and the cc recipient.\n<\/code><\/pre>\n<p>In this command, the <code>-c cc@example.com<\/code> option sends a carbon copy of the email to &#8216;cc@example.com&#8217;. The email is still sent to the main recipient &#8216;recipient@example.com&#8217;.<\/p>\n<h2>Advanced Usage of Mailx Command in Linux<\/h2>\n<p>As you grow more comfortable with the basic usage of the mailx command, it&#8217;s time to delve into its more advanced features. The mailx command is incredibly flexible, allowing for more complex email sending scenarios, including sending emails with attachments, setting email priority, and using a variety of mailx options.<\/p>\n<p>Before we dive into these advanced uses, let&#8217;s familiarize ourselves with some of the command-line arguments or flags that can modify the behavior of the mailx command. Here&#8217;s a table with some of the most commonly used mailx arguments.<\/p>\n<table>\n<thead>\n<tr>\n<th>Argument<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>-a<\/code><\/td>\n<td>Attach a file.<\/td>\n<td><code>echo 'Hello' | mailx -s 'Subject' -a file.txt user@example.com<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-b<\/code><\/td>\n<td>Send blind carbon copies.<\/td>\n<td><code>echo 'Hello' | mailx -s 'Subject' -b user2@example.com user@example.com<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-c<\/code><\/td>\n<td>Send carbon copies.<\/td>\n<td><code>echo 'Hello' | mailx -s 'Subject' -c user2@example.com user@example.com<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-d<\/code><\/td>\n<td>Debugging mode.<\/td>\n<td><code>mailx -d -s 'Subject' user@example.com &lt; file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-E<\/code><\/td>\n<td>Do not send empty emails.<\/td>\n<td><code>echo ' ' | mailx -E -s 'Subject' user@example.com<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-r<\/code><\/td>\n<td>Specify the from address.<\/td>\n<td><code>echo 'Hello' | mailx -r from@example.com -s 'Subject' user@example.com<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-v<\/code><\/td>\n<td>Verbose mode.<\/td>\n<td><code>echo 'Hello' | mailx -v -s 'Subject' user@example.com<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-q<\/code><\/td>\n<td>Read a mail file.<\/td>\n<td><code>mailx -q file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-H<\/code><\/td>\n<td>Print headers only.<\/td>\n<td><code>mailx -H<\/code><\/td>\n<\/tr>\n<tr>\n<td><code>-S<\/code><\/td>\n<td>Define a mailx variable.<\/td>\n<td><code>mailx -S smtp=smtp.example.com<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Now that we&#8217;ve familiarized ourselves with some of the command-line arguments, let&#8217;s explore some of these advanced uses in more detail.<\/p>\n<h3>Sending Emails with Attachments<\/h3>\n<p>You can use the <code>-a<\/code> option to attach files to your emails. Here&#8217;s an example:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'See attached file.' | mailx -s 'Attached File' -a attachment.txt user@example.com\n\n# Output:\n# No output on the terminal. An email is sent to the recipient with an attachment.\n<\/code><\/pre>\n<p>In this example, the <code>-a attachment.txt<\/code> option attaches the file &#8216;attachment.txt&#8217; to the email.<\/p>\n<h3>Setting Email Priority<\/h3>\n<p>You can set the priority of an email using the <code>-S<\/code> option to define a mailx variable. Here&#8217;s an example:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is a high priority email.' | mailx -S 'Importance=high' -s 'High Priority Email' user@example.com\n\n# Output:\n# No output on the terminal. A high priority email is sent to the recipient.\n<\/code><\/pre>\n<p>In this example, the <code>-S 'Importance=high'<\/code> option sets the importance of the email to high.<\/p>\n<h3>Using Different Mailx Options<\/h3>\n<p>The mailx command provides several options that allow you to customize your emails. For example, you can use the <code>-r<\/code> option to specify the from address, and the <code>-c<\/code> option to send carbon copies. Here&#8217;s an example that uses both of these options:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is a test email.' | mailx -r from@example.com -s 'Test Email' -c cc@example.com user@example.com\n\n# Output:\n# No output on the terminal. An email is sent from 'from@example.com' to 'user@example.com', with a carbon copy sent to 'cc@example.com'.\n<\/code><\/pre>\n<p>In this example, the <code>-r from@example.com<\/code> option specifies the from address, and the <code>-c cc@example.com<\/code> option sends a carbon copy of the email to &#8216;cc@example.com&#8217;.<\/p>\n<h2>Alternative Mail Commands in Linux<\/h2>\n<p>While the mailx command is a powerful tool for handling emails in Linux, it&#8217;s not the only option. There are other mail commands that you can use, each with its own set of features and benefits. In this section, we&#8217;ll introduce you to two alternative mail commands: mutt and alpine.<\/p>\n<h3>Mutt: A Powerful Mail User Agent<\/h3>\n<p>Mutt is a text-based mail user agent renowned for its powerful features. It supports POP and IMAP protocols and is highly configurable.<\/p>\n<p>Here&#8217;s a simple example of sending an email with mutt:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is the body of the email' | mutt -s 'My Subject' recipient@example.com\n\n# Output:\n# No output on the terminal. An email is sent to the recipient.\n<\/code><\/pre>\n<p>In this command, we&#8217;re using the <code>echo<\/code> command to generate the content of the email, then piping that content into the <code>mutt<\/code> command. The <code>-s<\/code> option sets the subject of the email, and <code>recipient@example.com<\/code> is the email address of the recipient.<\/p>\n<h3>Alpine: A User-Friendly Mail Client<\/h3>\n<p>Alpine is a fast, easy-to-use email client that is great for beginners. It supports IMAP, POP, and SMTP protocols.<\/p>\n<p>Here&#8217;s how you might send an email with alpine:<\/p>\n<pre><code class=\"language-bash line-numbers\">alpine -compose 'TO=recipient@example.com SUBJECT=My Subject BODY=This is the body of the email'\n\n# Output:\n# Alpine's compose screen opens with the TO, SUBJECT, and BODY fields filled in.\n<\/code><\/pre>\n<p>In this command, the <code>-compose<\/code> option opens Alpine&#8217;s compose screen with the TO, SUBJECT, and BODY fields filled in. You would then press <code>Ctrl+X<\/code> to send the email.<\/p>\n<h3>Making the Right Choice<\/h3>\n<p>When deciding between mailx, mutt, and alpine, consider your needs and the complexity of your tasks. If you need a simple command to send emails from scripts, mailx is a great choice. If you need a more powerful mail user agent with support for multiple protocols, consider mutt. If you&#8217;re a beginner looking for an easy-to-use mail client, alpine could be the right choice for you.<\/p>\n<h2>Navigating Errors with Mailx<\/h2>\n<p>Like any command-line tool, the mailx command can sometimes throw errors or behave unexpectedly. In this section, we&#8217;ll look at some common issues that you might encounter when using the mailx command and how to resolve them.<\/p>\n<h3>Error: &#8216;mailx: command not found&#8217;<\/h3>\n<p>If you&#8217;re trying to use the mailx command and you see an error message that says &#8216;mailx: command not found&#8217;, it means that the mailx package is not installed on your system. Here&#8217;s an example of this error:<\/p>\n<pre><code class=\"language-bash line-numbers\">mailx -s 'Test Email' user@example.com\n\n# Output:\n# bash: mailx: command not found\n<\/code><\/pre>\n<p>To resolve this issue, you need to install the mailx package. Here&#8217;s how you can do it on a Debian-based system like Ubuntu:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo apt-get update\nsudo apt-get install mailutils\n\n# Output:\n# [Various installation messages]\n<\/code><\/pre>\n<p>And here&#8217;s how you can do it on a Red Hat-based system like CentOS:<\/p>\n<pre><code class=\"language-bash line-numbers\">sudo yum update\nsudo yum install mailx\n\n# Output:\n# [Various installation messages]\n<\/code><\/pre>\n<h3>Error: &#8216;mailx: Cannot send message: Process exited with a non-zero status&#8217;<\/h3>\n<p>This error occurs when the mailx command can&#8217;t send the email for some reason. The most common cause is a misconfigured or missing SMTP server. Here&#8217;s an example of this error:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'Hello, World!' | mailx -s 'Test Email' user@example.com\n\n# Output:\n# Cannot send message: Process exited with a non-zero status\n<\/code><\/pre>\n<p>To resolve this issue, you need to check your SMTP server configuration. You can specify the SMTP server using the <code>-S smtp=smtp.example.com<\/code> option.<\/p>\n<h3>Best Practices and Optimization Tips<\/h3>\n<p>Here are a few tips to get the most out of the mailx command:<\/p>\n<ul>\n<li>Always specify the subject of the email using the <code>-s<\/code> option. This makes your emails more informative and easier to identify.<\/li>\n<li>Use the <code>-c<\/code> option to send carbon copies of your emails. This can be useful when you want to keep multiple parties informed.<\/li>\n<li>Use the <code>-a<\/code> option to attach files to your emails. This allows you to share files directly from your terminal.<\/li>\n<li>If you&#8217;re sending a lot of emails, consider using a script to automate the process. You can use a simple bash script to read the recipients from a file and send them an email.<\/li>\n<\/ul>\n<h2>Understanding Mail Servers and Mail Commands in Linux<\/h2>\n<p>Before we delve deeper into the intricacies of the mailx command, it&#8217;s important to understand the basic concepts of mail servers and the role of mail commands in Linux.<\/p>\n<h3>What are Mail Servers?<\/h3>\n<p>A mail server, or an email server, is a computerized system that sends and receives emails. It&#8217;s like the post office of the digital world. When you send an email, it goes to the mail server, which then routes it to the correct destination.<\/p>\n<h3>How do Mail Commands in Linux Work?<\/h3>\n<p>In Linux, mail commands like mailx, mutt, and alpine interact with the mail server to send and receive emails. They use various protocols to communicate with the mail server, including SMTP, POP, and IMAP.<\/p>\n<p>For example, when you use the mailx command to send an email, it communicates with the SMTP server to deliver your message. Here&#8217;s a simple example of this process:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is the body of the email' | mailx -s 'My Subject' recipient@example.com\n\n# Output:\n# No output on the terminal. An email is sent to the recipient.\n<\/code><\/pre>\n<p>In this command, the <code>echo<\/code> command generates the content of the email, which is then piped into the <code>mailx<\/code> command. The mailx command communicates with the SMTP server to send the email to the recipient&#8217;s mail server.<\/p>\n<h3>The Role of SMTP Protocol<\/h3>\n<p>SMTP, or Simple Mail Transfer Protocol, is the standard protocol for sending emails on the internet. It works closely with the mailx command to deliver your emails.<\/p>\n<p>When you send an email with the mailx command, it uses SMTP to communicate with the mail server. It tells the server the details of the email, including the recipient, the subject, and the body of the email. The server then sends the email to the recipient&#8217;s mail server, also using SMTP.<\/p>\n<p>Here&#8217;s an example of how you might specify the SMTP server when using the mailx command:<\/p>\n<pre><code class=\"language-bash line-numbers\">echo 'This is the body of the email' | mailx -S smtp=smtp.example.com -s 'My Subject' recipient@example.com\n\n# Output:\n# No output on the terminal. An email is sent to the recipient.\n<\/code><\/pre>\n<p>In this command, the <code>-S smtp=smtp.example.com<\/code> option specifies the SMTP server. The mailx command uses this server to send the email.<\/p>\n<h2>Harnessing Mailx for Scripting and Automation<\/h2>\n<p>The mailx command is not just a tool for sending emails from the command line. It&#8217;s a powerful utility that can be integrated into scripts and used for automation, making it an invaluable asset for system administrators and developers alike.<\/p>\n<h3>Automating Emails with Cron Jobs<\/h3>\n<p>One common use of the mailx command is to automate the sending of emails using cron jobs. A cron job is a time-based job scheduler in Unix-like operating systems. You can schedule scripts to run at specific times or dates, and those scripts can use the mailx command to send emails.<\/p>\n<p>Here&#8217;s an example of a bash script that uses the mailx command to send an email:<\/p>\n<pre><code class=\"language-bash line-numbers\">#!\/bin\/bash\n\necho 'This is an automated email.' | mailx -s 'Automated Email' user@example.com\n<\/code><\/pre>\n<p>You can schedule this script to run at specific times using a cron job. For example, to run the script every day at noon, you would add the following line to your crontab file:<\/p>\n<pre><code class=\"language-bash line-numbers\">0 12 * * * \/path\/to\/script.sh\n<\/code><\/pre>\n<p>In this cron job, <code>\/path\/to\/script.sh<\/code> is the path to the bash script. The <code>0 12 * * *<\/code> part specifies that the script should run at noon (12:00) every day.<\/p>\n<h3>Integrating Mailx into Shell Scripts<\/h3>\n<p>The mailx command can also be integrated into shell scripts to send emails when certain conditions are met. For example, you could write a script that monitors a log file and sends you an email when an error occurs.<\/p>\n<p>Here&#8217;s a simple example of such a script:<\/p>\n<pre><code class=\"language-bash line-numbers\">#!\/bin\/bash\n\n# Check if the log file contains the word 'error'\nif grep -q 'error' \/path\/to\/logfile.log; then\n    # If it does, send an email\n    echo 'An error occurred.' | mailx -s 'Error Alert' user@example.com\nfi\n<\/code><\/pre>\n<p>In this script, the <code>grep -q 'error' \/path\/to\/logfile.log<\/code> command checks if the log file contains the word &#8216;error&#8217;. If it does, the script sends an email using the mailx command.<\/p>\n<h3>Further Resources for Mastering Mailx<\/h3>\n<p>If you want to dive deeper into the world of mailx and related topics, here are a few resources that you might find useful:<\/p>\n<ul>\n<li><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.gnu.org\/software\/mailutils\/manual\/mailutils.html\" target=\"_blank\" rel=\"noopener\">The GNU Mailutils Manual<\/a>: This is the official manual for GNU Mailutils, which includes mailx. It&#8217;s a comprehensive resource that covers everything you need to know about mailx and other mail utilities.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/tldp.org\/\" target=\"_blank\" rel=\"noopener\">The Linux Documentation Project<\/a>: This website hosts a vast collection of guides and tutorials on various Linux topics, including mail commands and shell scripting.<\/p>\n<\/li>\n<li>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/www.amazon.com\/UNIX-Linux-System-Administration-Handbook\/dp\/0134277554\" target=\"_blank\" rel=\"noopener\">The Unix and Linux System Administration Handbook<\/a>: This book is a comprehensive guide to Unix and Linux system administration, including detailed discussions on mail servers and mail commands.<\/p>\n<\/li>\n<\/ul>\n<h2>Wrapping Up: Mastering the Mailx Command in Linux<\/h2>\n<p>In this comprehensive guide, we&#8217;ve explored the ins and outs of the mailx command in Linux, a powerful utility that allows you to send emails directly from your terminal. We&#8217;ve covered everything from the basic usage of the command, to more advanced features like sending emails with attachments and setting email priority.<\/p>\n<p>We started with the basics, learning how to use the mailx command to send simple emails. We then delved into more complex usage scenarios, exploring how to send emails with attachments, set the priority of an email, and use different mailx options. Along the way, we also discussed alternative mail commands in Linux, such as mutt and alpine, giving you a broader view of the tools available for handling emails in Linux.<\/p>\n<p>We also tackled common challenges that you might encounter when using the mailx command, such as missing or misconfigured SMTP server, and provided solutions to help you overcome these issues. We even went beyond the command itself, discussing its application in scripting and automation, and providing further resources for mastering mailx.<\/p>\n<p>Here&#8217;s a quick comparison of the methods we&#8217;ve discussed:<\/p>\n<table>\n<thead>\n<tr>\n<th>Method<\/th>\n<th>Pros<\/th>\n<th>Cons<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Mailx<\/td>\n<td>Simple to use, good for scripting<\/td>\n<td>May require SMTP server configuration<\/td>\n<\/tr>\n<tr>\n<td>Mutt<\/td>\n<td>Powerful, supports multiple protocols<\/td>\n<td>Might be overkill for simple tasks<\/td>\n<\/tr>\n<tr>\n<td>Alpine<\/td>\n<td>User-friendly, great for beginners<\/td>\n<td>Not as feature-rich as mutt<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Whether you&#8217;re a system administrator looking to automate email notifications, a developer aiming to integrate email functionality into your scripts, or a Linux enthusiast wanting to learn more about your system&#8217;s capabilities, we hope this guide has helped you get a firm grasp on the mailx command in Linux.<\/p>\n<p>With the knowledge you&#8217;ve gained from this guide, you&#8217;re now equipped to use the mailx command more effectively in your daily tasks. Happy emailing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you finding it challenging to send emails directly from your Linux terminal? You&#8217;re not alone. Many developers grapple with this task, but there&#8217;s a tool that can make this process a breeze. Like a diligent postman, the mailx command in Linux is a handy utility that allows you to send emails, complete with attachments [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13821,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,3,9],"tags":[],"class_list":["post-6429","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bash","category-linux","category-sysadmin","cat-124-id","cat-3-id","cat-9-id","has_thumb"],"_links":{"self":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/comments?post=6429"}],"version-history":[{"count":6,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6429\/revisions"}],"predecessor-version":[{"id":13825,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/posts\/6429\/revisions\/13825"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media\/13821"}],"wp:attachment":[{"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/media?parent=6429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/categories?post=6429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ioflood.com\/blog\/wp-json\/wp\/v2\/tags?post=6429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}