Open main menu

CDOT Wiki β

Changes

Tutorial6: File Transfer / Sending Email Messages

6 bytes added, 13:09, 27 January 2020
Sending Emails with File Attachment (mail)
:#Type: '''mail recipient@hostname''' and press '''ENTER''' <br>
:#Enter '''subject line''' and press '''ENTER'''<br>
:#Type the '''body of the message''' and then when finished, press '''ctrl+d''' to send message<br><br>'''NOTE:''' You can use the mail command with the '''-a ''' option to specify a file.<br><br>''Example:''<br>'''mail recipient@hostname '''-a''' filename'''
'''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>
13,420
edits