13,420
edits
Changes
→Sending Emails with File Attachment (mail)
'''Steps when sending email (Method 2):'''
::: Use the '''-s''' option in the command to specify the subject line of the command and use stdin redirection to send a text file as the body of the message.<br><br>'''NOTE:''' The advantage of using this method is that you can send an email message without being prompted for the subject line or body of text message.<br><br>''Example:''<br>'''mail -s "your subject line" recipient@hostname < filename'''
<br><br>