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