Auto send e-mail Script

Taking care of your Linux box.

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
shakirz1
Battalion Quarter Master Havaldaar
 
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Website: http://www.fattanis.cjb.net
WLM: shakirz1@hotmail.com
Yahoo Messenger: shakirz1@yahoo.com
Location: Karachi

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.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Auto send e-mail Script

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

thanks, this script work for me.
shakirz1
Battalion Quarter Master Havaldaar
 
Posts: 207
Joined: Sat Aug 09, 2003 5:00 pm
Website: http://www.fattanis.cjb.net
WLM: shakirz1@hotmail.com
Yahoo Messenger: shakirz1@yahoo.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 2 guests

cron