Using pipes $ echo "Example Message" | mail - s "A mail sent using mailx" Sending same Mail to Multiple Recipients: We can send the same email to multiple receivers (not by cc or bcc) as follows: $ mail - s "A mail sent using mailx" < /path/to/file Taking the message from a file $ mail -s "A mail sent using mailx" < /path/to/fileģ. $ mail -s "A mail sent using mailx" person,Ģ. After the content is written, press Ctrl+D & EOT will be displayed by mailx. After this, mailx waits for the content of the email. Writing the message directly in the command line: To send a simple email, use the “-s” flag to set the subject in quotes which is followed by the email of the receiver.
0 Comments
Leave a Reply. |