@lia
To send an email using the sendmail command in Linux, you can follow these steps:
1
|
echo "Subject: Email Subject" | sendmail -v recipient@example.com |
Replace "Email Subject" with the desired subject of your email and "recipient@example.com" with the recipient's email address. You can also add the email body by typing it after the recipient's email address.
1 2 |
recipient@example.com... Transmitted (Message ID: <20211001093619.ABCDEF1234@example.com>) Closing connection to [127.0.0.1] |
Note: To use the sendmail command, make sure it is installed on your system. If it's not already installed, you can install it using the package manager specific to your Linux distribution.