Changes

Jump to: navigation, search

Tutorial6: File Transfer / Sending Email Messages

36 bytes removed, 10:19, 1 September 2020
Sending Emails with File Attachment (mail)
'''Steps when sending email (Method 1)Sending a Simple Email Message:'''
:#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 to send<br>as an attachment to your email message.<br><br>''Example:''<br>'''mail recipient@hostname -a filename'''
'''Sending an Email Message with Attachment:'''
:#Type: '''Steps mail recipient@hostname -a filepathname''' and press '''ENTER''' <br>:#Enter '''subject line''' and press '''ENTER'''<br>:#Type the '''body of the message''' and then when sending email (finished, press '''ctrl+d''' to send message<br><br> '''Alternative Method 2)of Sending an Email Message with Attachment:'''
:#Type:: Use the '''mail -s"your subject line" recipient@hostname < filenamepathname''' 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.press '''ENTER'''<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>
=INVESTIGATION 1: USING SECURE COPY=
13,420
edits

Navigation menu