Sponsored Content
Top Forums Shell Programming and Scripting Unable to populate subject field of the email while using sendmail Post 302432589 by panyam on Friday 25th of June 2010 12:02:58 PM
Old 06-25-2010
Something like this worked for me:

Code:
 
/usr/lib/sendmail -t -i <<EOM
 From:test@test.com
 To:ravi.panyam@subexworld.com
 Subject:Bla

 ooo
 ooo
 oo
 EOM

This User Gave Thanks to panyam For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Unable to send eMail from a UNIX-Host ( using mailx ) to a Outlook-email-addres(Win)

Hi A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as " usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
Discussion started by: Vetrivela
2 Replies

2. Shell Programming and Scripting

sendmail subject to append dynamically.

Hi, I have to use sendmail from command line, and we need to append a static string in subject to a new value from file.Is there any way to do it. Thanks Shrikrishna (1 Reply)
Discussion started by: shrikrishna
1 Replies

3. Red Hat

Unable to install & configure Sendmail

Hi All • Regarding installing sendmail pkg in server, I tried to install the pkg but getting the below errors as shown below - any idea on this? • But I have successfully installed sendmail-cf pkg in the server box • But that is not sufficient we also need to install sendmail pkg • Help is... (2 Replies)
Discussion started by: csaha
2 Replies

4. Shell Programming and Scripting

sendmail subject

what is the syntax for sending a subject ? sendmail -t a@b.com The person receives the mail with an empty subject! the man pages dont give anything related to subject...anybody?? (11 Replies)
Discussion started by: wannalearn
11 Replies

5. UNIX for Dummies Questions & Answers

Sendmail field

What does the sendmail field "helo" denote in the logs? (1 Reply)
Discussion started by: mojoman
1 Replies

6. HP-UX

Sendmail not submitting Email on '.'

I have several HP/UX nodes running Sendmail 8.13 ...some work fine, some don't. When an Email is coming in, the 'DATA' command never ends. The other side of the connection gets to the point where it enters the '.' on a line by itself, but sendmail doesn't accept it...if fact it keeps on holding... (8 Replies)
Discussion started by: john_exonets
8 Replies

7. UNIX for Dummies Questions & Answers

How to set Subject in Sendmail in Crontab

Hello All, I am trying to send a file through email everyday from one of my Linux (x86_64) system. I've scheduled Sendmail in Crontab like this- 00 8 * * * /usr/sbin/sendmail name@xxx.co.uk < /home/file1.out This entry in crontab is working very fine and I am receiving file file1.out... (10 Replies)
Discussion started by: NARESH1302
10 Replies

8. Shell Programming and Scripting

How to Populate field in File with it's manipulated Filename?

Hi All, I need to create a script to process on 10 files. Mentioned below is one of those file and the requirement. Input File DCIA_GEOG_DATA_OCEAN.TXT Sample Record "Terr","TerrName","Dist","DistName","REGION","RgnName","BCName" "A0010000","Abilene TX A 1","A0010957","Dallas... (5 Replies)
Discussion started by: Arun Mishra
5 Replies

9. Linux

Unable to send email with sendmail from PHP 5.3 on CentOS VM

I have a longstanding issue on my CentOS 5.6 VM where I am unable to send email from my PHP application. This is the last bunch of lines from my /var/log/maillog file. Feb 14 10:29:16 dev53 sendmail: s1EATEEo004637: Authentication-Warning: www.craig.dev-crmpicco.lan: apache set sender to... (2 Replies)
Discussion started by: crmpicco
2 Replies

10. Shell Programming and Scripting

Unable to recieve email using sendmail

Hi, Here is my script to send out emails. #!/bin/ksh { print "From: Prod@`hostname`.mycomp.com" print "To: me@mycomp.com" print "MIME-Version: 1.0" print "Content-Type: text/html" print "Subject: Usage Report" print "" print... (2 Replies)
Discussion started by: mohtashims
2 Replies
MASS-BUG(1)															       MASS-BUG(1)

NAME
mass-bug - mass-file a bug report against a list of packages SYNOPSIS
mass-bug [options] --subject="bug subject" template package-list DESCRIPTION
mass-bug assists in filing a mass bug report in the Debian BTS on a set of packages. For each package in the package-list file (which should list one package per line together with an optional version number separated from the package name by an underscore), it fills out the template, adds BTS pseudo-headers, and either displays or sends the bug report. Warning: Some care has been taken to avoid unpleasant and common mistakes, but this is still a power tool that can generate massive amounts of bug report mails. Use it with care, and read the documentation in the Developer's Reference about mass filing of bug reports first. TEMPLATE
The template file is the body of the message that will be sent for each bug report, excluding the BTS pseudo-headers. In the template, #PACKAGE# is replaced with the name of the package. If a version was specified for the package, #VERSION# will be replaced by that version. The components of the version number may be specified using #EPOCH#, #UPSTREAM_VERSION# and #REVISION#. #EPOCH# includes the trailing colon and #REVISION# the leading dash so that #EPOCH#UPSTREAM_VERSION##REVISION# is always the same as #VERSION#. Note that text in the template will be automatically word-wrapped to 70 columns, up to the start of a signature (indicated by '--' at the start of a line on its own). This is another reason to avoid including BTS pseudo-headers in your template. OPTIONS
mass-bug examines the devscripts configuration files as described below. Command line options override the configuration file settings, though. --severity=(wishlist|minor|normal|important|serious|grave|critical) Specify the severity with which bugs should be filed. Default is normal. --display Fill out the templates for each package and display them all for verification. This is the default behavior. --send Actually send the bug reports. --subject="bug subject" Specify the subject of the bug report. The subject will be automatically prefixed with the name of the package that the bug is filed against. --tags Set the BTS pseudo-header for tags. --user Set the BTS pseudo-header for a usertags' user. --usertags Set the BTS pseudo-header for usertags. --source Specify that package names refer to source packages rather than binary packages. --sendmail=SENDMAILCMD Specify the sendmail command. The command will be split on white space and will not be passed to a shell. Default is /usr/sbin/sendmail. --no-wrap Do not wrap the template to lines of 70 characters. --no-conf, --noconf Do not read any configuration files. This can only be used as the first option given on the command-line. --help Provide a usage message. --version Display version information. ENVIRONMENT
DEBEMAIL and EMAIL can be set in the environment to control the email address that the bugs are sent from. CONFIGURATION VARIABLES
The two configuration files /etc/devscripts.conf and ~/.devscripts are sourced by a shell in that order to set configuration variables. Command line options can be used to override configuration file settings. Environment variable settings are ignored for this purpose. The currently recognised variables are: BTS_SENDMAIL_COMMAND If this is set, specifies a sendmail command to use instead of /usr/sbin/sendmail. Same as the --sendmail command line option. COPYRIGHT
This program is Copyright (C) 2006 by Joey Hess <joeyh@debian.org>. It is licensed under the terms of the GPL, either version 2 of the License, or (at your option) any later version. AUTHOR
Joey Hess <joeyh@debian.org> Debian Utilities 2013-12-23 MASS-BUG(1)
All times are GMT -4. The time now is 02:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy