"GS" <globalswamy@hotmail.com> wrote in message
news:1158901008.513594.242850@k70g2000cwa.googlegr oups.com
> If I want my Linux machine sends an automatic e-mail everytime machine
> boots?, where to keep a command, any idea?. Thanks in advance. I need
> to keep a command (Mail -s "booted" xyz@xyz.com < message.txt).
Put the command at the end of one of your startup scripts after the network
interface is configured and up. Which one depends on your distro (which you
don't mention) and what type of network interface is required to send the
mail.
This has nothing to do with sendmail however, so it's not clear why you ask
in this forum?
mail -s "booted `date`"
xyz@xyz.com < message.txt