Auto send e-mail Script

Taking care of your Linux box.
shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Auto send e-mail Script

Postby shakirz1 » Tue May 18, 2004 1:20 pm

I want a script which can send e-mail automatically at system startup.

I need only that script either writtern in PERl or SH or any other.

anybody have/create this script with following parameters

tomail=shakirz1@hotmail.com subject="auto mail" bodytext="send on system startup"

thanks

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Re: Auto send e-mail Script

Postby lambda » Wed May 19, 2004 1:58 pm

stick this in your /etc/rc.local:

Code: Select all

echo 'send on system startup' | mail -s 'auto mail' shakirz1@hotmail.com


that'll be rs 600, thanks.

shakirz1
Battalion Quarter Master Havaldaar
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Location: Karachi
Contact:

Auto send e-mail Script

Postby shakirz1 » Wed May 19, 2004 3:08 pm

thanks, this script work for me.


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest