Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to send emails per script ?

Status
Not open for further replies.

Bamboosch

Programmer
Jun 23, 2000
6
DE
hi there,

is it possible to send emails out of a script (with attachement) ???

the program 'mail' needs some user interaction or i can't find any useful parameter...

many thanks
 
I use the bash shell and get a date automatically mailed to a particular account whenever a user logs in to the server system... This is what the script looks like... you can adapt this to just about any situation...

Code:
/bin/date | /bin/mail -s "Login Date & Time" logins@mydomain.com
AV
tnedor@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top