Solved

subject option for command line sendmail

Posted on 2000-04-25
2
274 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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