• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: sendmail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: sendmail


  • Subject: RE: sendmail
  • From: "Rogers, Nick" <email@hidden>
  • Date: Mon, 3 Feb 2003 14:38:45 -0500

I found this in 'man mail':

-I Forces mail to run in interactive mode even when input isn't a ter-
minal. In particular, the '~' special character when sending mail
is only active in interactive mode.

but I had no success with it. However, I also found this in 'man sendmail':

-t Read message for recipients. To:, CC:, and BCC:
lines will be scanned for recipient addresses. The
Bcc: line will be deleted before transmission.

So, I have a text file in my home directory, test.txt, that contains "this
is a test." I can then do 'sendmail -t email@hidden < test.txt' in
the terminal from my home directory, and the mail goes out.

n

-----Original Message-----
From: Michael Grant [mailto:email@hidden]
Sent: Monday, February 03, 2003 12:42 PM
To: email@hidden
Subject: Re: sendmail

On 2/3/03 11:56 AM, "Andrew Oliver" <email@hidden> wrote:

> Yes, except that if you run the mail command in a terminal window, you get
> to type the message body - i.e. you interact with mail.
>
> According to man mail:
>
>> Sending mail
>> To send a message to one or more people, mail can be invoked with
argu-
>> ments which are the names of people to whom the mail will be sent.
You
>> are then expected to type in your message, followed by an `control-D'
at
>> the beginning of a line.
>
> 'do shell script' doesn't offer the ability to interact with the shell, so
> you can invoke the mail utility, but there's no way to tell it what the
> message is once you've called 'do shell script', or to send a Ctrl-D at
the
> end. Piping the message in was the only way I could find to do that.
>
> At least not that I'm aware of. Love to be proved wrong. :)

Hmm, there gotsta be a way, but I'm probably not going to have a chance to
fiddle with it till later this week....

Michael


--
Why are we taking precious military and intelligence resources away from
tracking down those who did attack the United States -- and who may again
attack the United States -- and using them to invade countries that have not
attacked the United States?

- Congressman Ron Paul
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Entering data into fields in a web form
  • Next by Date: Stuck and no where to go... Please read..
  • Previous by thread: Re: sendmail
  • Next by thread: Bypassing Print Dialog box
  • Index(es):
    • Date
    • Thread