Send email using mail command on linux


/ Published in: Bash
Save to your folder(s)

This command will email the contents of emailbody.txt to [email protected] with the subject My subject line.


Copy this code and paste it in your HTML
  1. mail -s "My subject line" somebody@domain.com < emailbody.txt

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.