The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > BSD
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sending email from KSH unix script. rosh0623 Shell Programming and Scripting 3 07-26-2005 12:36 AM
sending email in unix. need help! tads98 Shell Programming and Scripting 2 05-16-2005 05:33 AM
unix - c program sending error from DB to email chino_52284 Shell Programming and Scripting 2 04-28-2005 05:12 PM
Sending email bcheaib UNIX for Dummies Questions & Answers 7 02-22-2005 05:03 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-28-2005
Registered User
 

Join Date: Aug 2005
Posts: 1
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Cool help request for sending email from unix to internet

I have a requirement to send email to a group once I have done some tests. I tried the following from command line:-
mailx -s "Test REsults for today " myname@companyname.com <testresultfile.txt

but the email was not received by anyone

basically I followed the format:
mailx -s "$env(WWW_msub)" $env(WWW_mailto) < /tmp/$fname

is this supposed to work ?., When I entered this command, I did not get any error message. I looked at my email and did not find any email coming to me even after a day.

Can someone please help me to find out what is wrong inthe above statement?., is there any other easy way to send emails.

Thanks in advance.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 09-14-2005
indo1144's Avatar
Registered User
 

Join Date: Jun 2002
Location: Netherlands
Posts: 53
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Here's what I always do:
Quote:
cat testresultfile.txt | mail -s "Place subject here" email@address.com
You can put more than one mailaddress behind the first, use space as separator.
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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



All times are GMT -7. The time now is 09:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102