Re: Mailx fails to send email

From: Tony McNicholas (tonymcnicholas_at_eircom.net)
Date: 05/20/04


Date: 20 May 2004 07:10:12 -0700

santhoshmenon@indiatimes.com (Santhosh Menon) wrote in message news:<daf211d.0405191134.3d29ce9@posting.google.com>...
> tonymcnicholas@eircom.net (Tony McNicholas) wrote in message news:<5ef83337.0405190648.450f3856@posting.google.com>...
> > I can send an email from solaris 8 using sendmail.
> >
> > ie
> >
> > /usr/lib/sendmail -t -oi < filename.txt
> >
> > filename.txt contains.
> > ................................
> > From: tony
> > To: oracle1@environ.ie
> > Bcc: tonymcnicholas@eircom.net
> > Subject: simple sendmail
> > ................................
> >
> > However the following fails to send an email
> >
> > mailx tonymcnicholas@eircom.net
> > SOME TEXT
> > EOT
> >
> > Anyone know why sendmail would work and mailx wouldn't ?
> >
> > Thanks,
> >
> > Tony.
> > ~
>
> We have something which is working on solaris
>
> mailx -s "Mail subject" <BC_LIST> <TO_LIST>
>
>
>
> also
> which mailx gives
> /usr/bin/mailx
>
> good luck

Figured out what the problem was. I had to reset the recipient to a
valid email address on the command line as opposed to the default
username@machine.domain on unix.

ie the following works

mailx -r oracle1@environ.ie -s subject tonymcnicholas@eircom.net

Thanks



Relevant Pages

  • Re: aliasing not working
    ... When I try to send messages thusly, it fails: ... echo joe | mailx -s test dan ...
    (comp.mail.sendmail)
  • Re: Unix assigning permissions to windows 2000/3 folders
    ... I have talked to other Unix ... information and then spawns another script that excutes a 'sudo' command. ... If all else fails - READ THE INSTRUCTIONS! ...
    (microsoft.public.windows.server.scripting)
  • Re: mail command option for return address on linux
    ... I am migrating/porting Solaris scripts to Linux Platform. ... One of script uses mailx command on Solaris and we don't have mailx on ... At the time that was, amongst others, used in News control ...
    (comp.mail.misc)
  • Re: Help with Unix MAIL program
    ... Most modern Unix versions have a form of mailx, ... You might find that your Unix mail program is actually mailx under a ... This variable can be used to set the sender ...
    (comp.unix.admin)
  • Re: Help with Unix MAIL program
    ... Most modern Unix versions have a form of mailx, ... You might find that your Unix mail program is actually mailx under a ... This variable can be used to set the sender ...
    (comp.unix.solaris)