Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Mar 2003 12:00:44 -0500 (EST)
From:      IAccounts <iaccounts@northnetworks.ca>
To:        Brian Henning <b1henning@hotmail.com>
Cc:        freebsd <freebsd-questions@FreeBSD.ORG>
Subject:   Re: mail problem
Message-ID:  <20030306115859.M4415-100000@diana.northnetworks.ca>
In-Reply-To: <OE36rhVRAGMd4uzHNjd00000cb8@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> i am able to perform the following command fine when i want to send mail on the
> local network.
> cat input_message.txt | mail -s "hello world" henninb@localhost
>
> is there a flag that i can pass to mail to tell it to use the proper server for
> when i want to perform this operation to an address outside my local network?
> cat input_message.txt | mail -s "hello world" b1henning@hotmail.com


I've always redirected the file into the mail command as opposed to piping
cat results to the mail command. eg:

# mail -s "Hello, World!" steve@mydomain.com < input_message.txt

Steve


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030306115859.M4415-100000>