Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I need to send email from unix to a email distribution list on the Microsoft exchange server.
The following gives me an eror!
ADDRESSEE="XY" -- XY is the distribution list
echo $MessageTxt|mailx -s "test" $ADRESSEEError!
XY...Unknown User
Saved message in /home/dead.letterCan someone please help.
Thanks.

Seems like the error indicates it expects a user login XYZ on the unix machine. Normally, it would dump the message in /home/XYZ/dead.letter.
$ADRESSEE might need to be a space separated list in the form login@server

Try using the following sample...
NOTE:
1-create a file called MAIL_LIST which will have all the email address of the folks you want the mail to receive
2-Replace the Text with your appropriate message you want in your email../usr/ucb/logger -t "Mail Title" -p local1.alert Usage: Title goes here mailx -s "Your message goes here " `cat $MAIL_LIST` << EOF
hope this helps...

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |