13,420
edits
Changes
→INVESTIGATION 3: USING THE MAIL COMMAND TO SEND FILE ATTACHMENTS
# Press <span style="color:blue;font-weight:bold;font-family:courier;">ctrl-d</span> to send your email message.<br><br>Did any output display after you sent this email message? If so, what you do think it stands for?<br><br>
# Launch a '''web-browser''', login into your '''Seneca email''' account and check for new email messages.<br>Did you receive the email message that you sent from your Matrix server?<br><br>If you did NOT receive an e-mail message, check the '''JUNK''' or '''CLUTTER''' folders.<br><br>
# Return to your Linux Bash shell and issue the following Linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">mail -a ~/localremote/thefilemyfile.txt yoursenecaid@myseneca.ca</span><br><br>
# When prompted, enter the subject line: <span style="color:blue;font-weight:bold;font-family:courier;">Test Message with Attachment</span><br> and press <span style="color:blue;font-weight:bold;font-family:courier;">ENTER</span><br><br>
# In the email message '''BODY''' section, type the following text displayed below:<br><span style="font-weight:bold;font-family:courier;">This is a test email message with a file attachment</span><br><br>
# Switch to your email and check your Seneca email for messages. Did you receive that email message?<br><br>
# Check your email to see if you received your email message. If you did, what do you notice?<br><br>
# Return to your shell and issue the following Linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">mail yoursenecaid@myseneca.ca < ~/localremote/thefilemyfile.txt</span><br><br>What happened?<br><br>
# Check your email to see if you received your email message. If you did, what do you notice?<br><br>You should have noticed that there was '''NO''' customized '''subject line''', since you redirected stdin from the file,<br>thus there was no ability to send a subject line.<br><br>You can use the '''-s''' option, followed by text (in quotes) to specify a '''subject line'''.<br><br>
# Return to your shell and issue the following Linux command:<br><span style="color:blue;font-weight:bold;font-family:courier;">mail -s "email with attachment" yoursenecaid@myseneca.ca < ~/localremote/thefilemyfile.txt</span><br><br>
# Check your email to see if you received your email message. If you did, what do you notice this time?<br><br>
# After completing this INVESTIGATION, perform the LINUX PRACTICE QUESTIONS at the end of the tutorial.<br><br>