您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12345678910111213141516171819202122232425
  1. #!/usr/bin/env sh
  2. #
  3. # pbrisbin 2013 - send myself stdin as an email from the system.
  4. #
  5. ###
  6. {
  7. cat << EOF
  8. Subject: ${1:-System email}
  9. Date: $(date -u +'%a, %d %h %Y %T +0000')
  10. From: Admin <admin@pbrisbin.com>
  11. To: pbrisbin@gmail.com
  12. Hello,
  13. EOF
  14. cat # stdin
  15. cat << EOF
  16. Thanks,
  17. Admin
  18. EOF
  19. } | /usr/sbin/sendmail -f 'admin@pbrisbin.com' pbrisbin@gmail.com