The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
shell script to send email with usage of space in the directory as description : sakthifire Shell Programming and Scripting 3 04-18-2008 04:27 AM
need help in finding a string and to send an email using shell script ranga27 Shell Programming and Scripting 10 02-19-2008 05:54 PM
need help: how to send email with HIGH priority in shell scripts? _joshua_ Shell Programming and Scripting 2 03-13-2007 01:34 AM
Shell script to send email alert for core dump rtatineni SUN Solaris 1 08-17-2006 02:33 PM
Shell to run query, encrypt and send email cub UNIX for Dummies Questions & Answers 7 07-17-2002 04:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-16-2007
madhumathikv madhumathikv is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 8
How to write a shell script to send an email to an id

Hi all,


I want to know how to send an email using shell script .....
I tried a command call mail but it did not work..
Please any one reply.. With example if you know thanks..


Madhu
  #2 (permalink)  
Old 10-16-2007
mvictorvijayan mvictorvijayan is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 29
mail

Can you please explain how did u try that?
  #3 (permalink)  
Old 10-16-2007
madhumathikv madhumathikv is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 8
$ mailx -s Desktop/images.jpg madhumathikv@gmail.com

[madhumathi@localhost ~]$ /home/madhumathi/dead.letter... Saved message in /home/madhumathi/dead.letter



It will not go further from here..
please help.. i need urgently...



Madhu
  #4 (permalink)  
Old 10-16-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
mailx -s subject madhumathikv@gmail.com <<EOM
this should be sent
EOM
  #5 (permalink)  
Old 10-23-2007
tamilmercy tamilmercy is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 1
Auto Email Script

Hi! Porter,
Basically I need to check everyday current server log file if anything “error” message on it? If answer yes I like to receive auto email. Please let me know how to write shell script for this auto alert email.

Thanks and regards
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0