Passing an input file through mail.
Heres the deal - I dial into my ISP, and get allocated a random IP
address, ie. I do not have a static IP, and cannot obtain one with my
What I would like to do, is on dialing in, pipe my ifconfig ppp0 to a
file, and mail that to my work address as follows:
ifconfig ppp0 > ipaddy
mail -s IP firstname.lastname@example.org < ipaddy
Doing this, according to my sendmail logs, generates a Data Format
Error. Any way I can achieve this using the above approach, or is there a
better alternative I am not aware of?
Work Email: email@example.com