Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

command line email from qmail?

Status
Not open for further replies.

mattmc97

IS-IT--Management
Dec 4, 2003
51
US
Hello all.

Mandrake 10.0
Qmailrocks v of qmail

I am trying to send a weekly reminder for a ship manifest to someone and was trying to automate it with a cron job. This is what I have so far:

cat email.txt | /usr/sbin/sendmail -F "ship_manifest" user@shippingco.com .

This will send an email to the person and show ship_manifest as the from address, but no subject.

I have tried -s like it postfix for subject but that does not work in qmail.

Any ideas how to get a subject on a command line email???

thanks.

mattmc
 
Thanks for the reply, but I do not see anywhere on that page that it talks about adding a subject to an email message.

Please list the command to add a subject or be so kind to post a quote from the page if I missed it.

thanks.

mattmc
 
Sorry,
the text file itself needs to be prepended with the Subject: line I believe.

Thus you'd echo it onto the top of the file and then use the example in the link.

Hosting Solutions for Home or Business.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top