Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:mail [2017/12/09 01:19] – external edit 127.0.0.1linux:mail [2018/02/06 13:43] (current) – [mail] tmade
Line 40: Line 40:
   MAILADDR=myemail@test.de   MAILADDR=myemail@test.de
   echo "Test" | mail -s "Another Test" ${MAILADDR}   echo "Test" | mail -s "Another Test" ${MAILADDR}
-  echo "Test" | mail -s "Another Test for ${HOST} - `date`" ${MAILADDR} -a "FROM: mail@domain.org"                 #Include sender-adress+  echo "Test" | mail -s "Another Test for ${HOST} - `date`" ${MAILADDR} -a "FROM: mail@domain.org"                             #Include sender-adress - old syntax until ~ 2010 
 +  echo "Test" | mail -s "Another Test for ${HOST} - `date`" ${MAILADDR} -r "mail@test.de"                                      #Include sender-adress "mail@test.de" for newer "mail" version 
 +  echo "test" | mail -s "Test mail" -S "smtp=10.1.2.3" "to-adress@test.de" -r "from-adress@test.de"                            #Include mailrelay "10.1.2.3"
      
  
linux/mail.txt · Last modified: 2018/02/06 13:43 by tmade
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki