mail ã³ãã³ã㧠from ãå¤æ´ããæ¹æ³ã¾ã¨ã
ã·ã§ã«ã¹ã¯ãªããã§ã¡ã¼ã«éä¿¡ããéãªã©ã« from ãå¤æ´ãããå ´åãæã ããã®ã§ããããã£ã¹ããªãã¥ã¼ã·ã§ã³ã«ãã£ã¦ãªãã·ã§ã³ã®æå®æ¹æ³ãç°ãªã£ã¦ããããããã¨ã度ã ã»ã»ã»ã
æ¯å調ã¹ãã®ãé¢åãªã®ã§ããã®æ©ä¼ã«ã¾ã¨ãã¦ã¿ã¾ããã
mail ã³ãã³ãã¯å®è£
ãããã¤ãããã®ã§ãä½ã使ã£ã¦ãããã«ãããªãã·ã§ã³ã®æå®æ¹æ³ãå¤æ´ãã¦ããå¿
è¦ãããã¾ãã
Mail version 8.1 6/6/93
CentOS 5.3 ç°å¢ã«å ¥ã£ã¦ãã mail ã³ãã³ãã
$ echo "Test Mail." | mail -s "test mail" [email protected] -- -f [email protected]
ã-- -fãã«ç¶ã㦠From ã«ä½¿ç¨ãããã¡ã¼ã«ã¢ãã¬ã¹ãæå®ãã¾ãã
Heirloom Mail version 12.4 7/29/08
CentOS 6.3 ç°å¢ã«å ¥ã£ã¦ãã mail ã³ãã³ãã
$ echo "Test Mail." | mail -s "test mail" -r [email protected] [email protected]
ã-rãã«ç¶ã㦠From ã«ä½¿ç¨ãããã¡ã¼ã«ã¢ãã¬ã¹ãæå®ãã¾ãã
OpenSUSE 11.1 ã® mail ã³ãã³ãã確ãããã§ããã
GNU Mailutils 2.2
Ubuntu 12.04 LTS ç°å¢ã«å ¥ã£ã¦ãã mail ã³ãã³ãã
$ echo "Test Mail." | mail -s "test mail" -aFrom:[email protected] [email protected]
ã-aFrom:ãã«ç¶ã㦠From ã«ä½¿ç¨ãããã¡ã¼ã«ã¢ãã¬ã¹ãæå®ãã¾ãã
ä¸åº¦æå
ã«ãã£ã¦ãã試ããã¨ã®ã§ããç°å¢ã®ã¿ãªã®ã§ããã以å¤ã®ããªã¨ã¼ã·ã§ã³ãããããç¥ãã¾ãããã大ä½ãã® 3 ãã¿ã¼ã³ãç¥ã£ã¦ããã°ãªãã¨ããªãããããªããã¨ã
åè
email - Change the "From:" address in Unix "mail" - Stack Overflow
http://stackoverflow.com/questions/54725/change-the-from-address-in-unix-mail