Solved

subject option for command line sendmail

Posted on 2000-04-25
2
270 Views
Last Modified: 2010-03-18
i have a perl script that uses sendmail to send out a list of emails- nowhere in the man page or sendmail.org FAQ does it even mention the notion that there is a subject in email:p
0
Comment
Question by:slithytove
2 Comments
 
LVL 1

Accepted Solution

by:
mnewnham earned 25 total points
ID: 2749670
Thats because sendmail is not a front end mailer:- it assumes that the message it is getting is already fully formed including headers. the easiest way to do this is to add a subject line to a message before you pass it to sendmail,e.g if you had a message:

Mary had a little lamb
Its fleece was white as snow.

create the message as

Subject: Mary's lambs
<blank line>
Mary had a little lamb
Its fleece was white as snow.

Then pass that off to sendmail.

alternatively, use mailx as your mailer, where you can use the -s"subject" option.
0
 

Author Comment

by:slithytove
ID: 2749681
thanks- I know I did this years ago and now I remember:)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question