mail
Verified for current stable LTS
Mail Command: Send Email With File Content
Use for send email with file content with Mail. Exact CLI syntax to send email with file content using Mail.
When to use this: Use for send email with file content with Mail.
Command Syntax
mail < <path/to/file.txt> --subject "<$HOSTNAME filename.txt>" <to_user@example.com> mail < <path/to/file.txt> --subject "<$env:HOSTNAME filename.txt>" <to_user@example.com> Command Breakdown
--subject- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to send email with file content using Mail.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Mail Command: Display Mail Help
mail -h Mail Command: Open Interactive Mail Prompt mail Mail Command: Send Email With Subject And Cc mail --subject "<subject line>" <to_user@example.com> --cc "<cc_email_address>" Mail Command: Send Tar Gz File Attachment tar cvzf - <path/to/directory1 path/to/directory2> | uuencode <data.tar.gz> | mail --subject "<subject_line>" <to_user@example.com> Img2pdf Command: Convert Image To Pdf With Metadata img2pdf <path/to/image.ext> --title <title> --author <author> --creationdate <1970-01-31> --keywords <keyword1 keyword2> --subject <subject> --output <path/to/file.pdf>