an example
$ echo "something" | mailx -s "subject" [email protected]
to send attachment
$ uuencode file file | mailx -s "subject" [email protected]
and to send attachment AND write the message body
$ (echo "something\n" ; uuencode file file) | mailx -s "subject" [email protected]
Related Posts:
- How to pretty print XML from the command line?
- What are file descriptors, explained in simple terms?
- How to kill a process running on particular port in Linux?
- Display exact matches only with grep
- How to split a delimited string into an array in awk?
- Display exact matches only with grep
- What does ^M character mean in Vim?
- What does it mean to write to stdout in C?
- What do ‘real’, ‘user’ and ‘sys’ mean in the output of time(1)?
- mkdir’s “-p” option
- wait(null) and wait(&status) C language and Status
- Shell script “for” loop syntax
- How to get the current directory in a C program?
- When could or should I use chmod g+s on a file or directory?
- How to Sum a column in AWK?
- Equivalent of *Nix ‘which’ command in PowerShell?
- What is the difference between SIGSTOP and SIGTSTP?
- How to colorize diff on the command line
- How to colorize diff on the command line
- How to read a file into a variable in shell?
- gpg decryption fails with no secret key error
- What is the difference between tar and zip?
- Display current path in terminal only
- What do the dup() and dup2() systems really do?
- What generates the “text file busy” message in Unix?
- Reasoning behind C sockets sockaddr and sockaddr_storage
- Rename multiple files based on pattern in Unix
- What is the difference between a symbolic link and a hard link?
- SCP Permission denied (publickey). on EC2 only when using -r flag on directories
- binary operator expected error when checking if a file with full pathname exists
- What is special about /dev/tty?
- How do I do ‘mount –bind’ in /etc/fstab?
- How to read backward from the end of file in less or more?
- Getting the last match in a file using grep
- How do I pause my shell script for a second before continuing?
- In the shell, what does ” 2>&1 ” mean?
- How can I send an email using PHP?
- How can I validate an email address using a regular expression?
- What is the difference between read and pread in unix?
- Given two directory trees, how can I find out which files differ by content?
- What can cause a “Resource temporarily unavailable” on sock send() command
- Why should we check WIFEXITED after wait in order to kill child processes in Linux system call?
- PHP mail function doesn’t complete sending of e-mail
- How to change the default registration email ? (plugin and/or non-plugin)
- Missing URL in password reset email
- Send user activation email when programmatically creating user
- WP Cron emails not working
- Stop wordpress from sending out moderation emails
- Few chars getting replaced with ‘=’ in mail content in wp_mail()
- Need to manually regsiter user, send the password and retreive their user ID
- WooCommerce lost password reset flow not working with SendGrid (redirect loop)
- On form submission how to send 2 email to different users
- Notify multiple email addresses on comments
- Server-side subscribe by email?
- Joining confirmation email
- How to setup SMTP for only one specific wp_mail()
- Easy Digital Downloads (EDD) – Purchase Receipt emails couldn’t be logged
- Trigger Woocommerce New User Email
- Processing a subscription form with POST method?
- WordPress sending emails continuously. How to stop it?
- WordPress E-mail Config
- How do I hide the purchase note in the WooCommerce ‘order completed’ email?
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- Get subscribers via REST API and send post notification
- WordPress unable to send mail
- Reply By Email to comment notifications
- Not able to send links in email after setting header
- Send email when a portfolio project is updated
- wp_mail_from is ignored
- Display emails of users who already posted at least once
- Do action for only switch status for publish_post
- Unable to change email address of admin on localhost
- How can I change the email that is inside the default email texts of wordpress?
- New Gmail email to a WordPress new post? [closed]
- Woocommerce Wcvendors – duplicate emails when Vendor approved
- Does WordPress require port 25 for email?
- Send email notifications to a defined email address depending if a product in order has a specific TAG [closed]
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- Is there a plugin that will let you do actions by mail? [closed]
- Contact Form 7 Plugin emails not being received by some accounts
- Mail through Cron Execution does not work!
- How to check if woocommerce_order_item_name is use in email?
- Need to suspend RSS feed while repairing missing old post
- Send user auto generated password on different email
- Send email with Content-Type text/plain
- How to change a wordress plugin php code in my child’s functions.php file?
- How to change lost password email text using custom plugin wordpress?
- How to send custom mail when a user complete a specific form
- Do_shortcode before send email content
- how to add custom reviews button in woocommerce order complete generated mail
- changing notification emails from WordPress @mydomain.net to something else
- Send Bulk Email without them going to spam
- What add_action reference should I be using or should I use do_action?
- Specific mail notification [closed]
- How to work email subscribe in WordPress?
- Turkish Character Problem on mailing
- How to send async emails in wordpress?
- How do I get the current Unix time in milliseconds in Bash?
- How do I get apt-get to ignore some dependencies?
- How can I add email code authentication on form submission without any wp plugin?