Solved

subject option for command line sendmail

Posted on 2000-04-25
2
277 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

707 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