Solved

subject option for command line sendmail

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

708 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now