[ale] Command to force an email
Jeff Hubbs
Jhubbs at niit.com
Wed Sep 27 15:34:43 EDT 2000
"sendmail -t" lets you put the "To:", "Cc:", and "Subj" information in the
body of the message itself and you also specify flag text (I use "XYXYX") as
an EOF marker. Just the same, yes, the e-mail goes out immediately.
I think what you described about sendmail -q is a right fine solution as
well and would be preferable especially if you need to specify a message
text file.
- Jeff
> -----Original Message-----
> From: Joe Knapka [mailto:jknapka at earthlink.net]
> Sent: Wednesday, September 27, 2000 3:18 PM
> To: Jeff Hubbs
> Cc: Armsby John-G16665; 'ale at ale.org'
> Subject: Re: [ale] Command to force an email
>
>
> Jeff Hubbs wrote:
> >
> > I'm invoking sendmail -t in a script to do just that. I
> don't have it
> > running as a daemon. I also am including the message text
> in the script
> > itself although there has got to be some way to incorporate
> a text file.
>
> Sure, use the "mail" commands as John described, which queues the
> message for delivery. Then invoke "sendmail -q" to process the mail
> queue. (Does this work using -t as well? The sendmail docs imply
> -t does something entirely different.)
>
> -- Joe
>
> > - Jeff
> >
> > > -----Original Message-----
> > > From: Armsby John-G16665 [mailto:John.Armsby at motorola.com]
> > > Sent: Wednesday, September 27, 2000 3:00 PM
> > > To: 'ale at ale.org'
> > > Subject: [ale] Command to force an email
> > >
> > >
> > > I have a script which sends an email.
> > >
> > > mail -s test john at myplace <message.txt
> > >
> > > I would like to force an immediate mailing as soon as the
> > > script executes.
> > > I think Linux is waiting for some time before sending the
> > > message. Isn't
> > > there a command I can invoke to push the mail out immediately?
> > >
> > > Thanks,
> > >
> > > John
> > > --
> > > To unsubscribe: mail majordomo at ale.org with "unsubscribe ale"
> > > in message body.
> > >
> > --
> > To unsubscribe: mail majordomo at ale.org with "unsubscribe
> ale" in message body.
>
> --
> *** Joseph Knapka ***
> In any formula, constants (especially those obtained from handbooks)
> are to be treated as variables.
> --
> To unsubscribe: mail majordomo at ale.org with "unsubscribe ale"
> in message body.
>
--
To unsubscribe: mail majordomo at ale.org with "unsubscribe ale" in message body.
More information about the Ale
mailing list