Open main menu

CDOT Wiki β

Changes

Tutorial6: File Transfer / Sending Email Messages

9 bytes added, 14:08, 27 January 2021
INVESTIGATION 3: USING THE MAIL COMMAND TO SEND FILE ATTACHMENTS
# 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 &lt; ~/remote/myfile.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''',<br>since you redirected stdin from the file, thus there was no ability way for the user 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 &lt; ~/remote/myfile.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>
13,420
edits