Sponsored Content
Full Discussion: sendmail command
Top Forums UNIX for Dummies Questions & Answers sendmail command Post 28913 by oombera on Thursday 26th of September 2002 09:41:15 AM
Old 09-26-2002
Try using -t as well...

From man page:
Quote:
Read message for recipients. To:, Cc:, and Bcc: lines will be
scanned for recipient addresses. The Bcc: line will be deleted
before transmission.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Sendmail command

Can anyone tell me? How can i attach the file using sendmail command? Give me one example. (2 Replies)
Discussion started by: kingganesh04
2 Replies

2. Shell Programming and Scripting

Command line problems with sendmail

I cannot get this shell script to work. The path to sendmail is correct... #!/bin/bash echo -e "Subject: email subject\n\nemailbody" | /usr/sbin/sendmail -F fromemail@somedomain.com -t recipientemail@somedomain.com (1 Reply)
Discussion started by: limmer
1 Replies

3. UNIX for Advanced & Expert Users

Sendmail with attachment command line ?

hi.. Could somebody guide me how to send mail with attachment using sendmail command in unix ? Thank you, (2 Replies)
Discussion started by: bh_hensem
2 Replies

4. UNIX for Dummies Questions & Answers

Sendmail command options question

Hello, I am trying to use sendmail with spesific usage I am trying to tail a file and send it from an address to my personal mail I am doing so with this command: tail -c 60000 test | sendmail -f sender@domain.com my@mail.com This is working great. I am trying to add this command a... (4 Replies)
Discussion started by: Amit86
4 Replies

5. UNIX for Dummies Questions & Answers

Does the mail command use sendmail?

The question is, Does the mail comman actually send using sendmail or something else? So I am trying to test if sendmail is set up. I used... cat testemail.txt | mail -s "test mail" myemail@test.com I used my email though I didn't get an error, but didn't get the email either. ... (2 Replies)
Discussion started by: wondernate
2 Replies

6. AIX

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (1 Reply)
Discussion started by: ns64110
1 Replies

7. Shell Programming and Scripting

Sending attachment using sendmail command

Send_Mail() { C_Date=`date +"%m/%d/%Y"` #Subject="MMDB Load Job Status" for i in `cat $Metafile` do if then email_address=`echo $i | cut -d":" -f2` /usr/lib/sendmail "$email_address" < $Email_File fi done } this is the send mail command i am using .please let me... (1 Reply)
Discussion started by: Alok K Yadav
1 Replies

8. UNIX for Advanced & Expert Users

Regarding help in sendmail command

Hello All, I have a query here. I want to send an email by sendmailcommand in BASH. So email should have body(by reading a Input_file) in it as well as it should send same Input_file as attachment too. To do so I have tried as following. sendmail_touser() { cat - ${Input_file_HTML} << EOF |... (5 Replies)
Discussion started by: RavinderSingh13
5 Replies

9. Red Hat

-bash: sendmail: command not found

Hello Experts, I have been trying to send a test mail in our linux server with sendmail command.But I am getting command not found error message. -->when I tried whether sendmail installed or not with the command rpm -qa sendmail* I got the below, sendmail-cf-8.14.4-8.el6.noarch... (26 Replies)
Discussion started by: Devipriya Ch
26 Replies

10. Shell Programming and Scripting

Sendmail command truncating to list

Hey Folks - I'm trying to pass a list of To address using sendmail command but upon executing the script the to list gets truncated and not able to send the last sender : -bash-4.3$ ./akt.sh Date : 03-JUL-18 aaaaa.sss#bgttecre.bom trcikant.shrivas#bgttecre.bom abc#xyz.bom pqr#lmn.bom lion... (0 Replies)
Discussion started by: vyomdev
0 Replies
nullmailer-inject(1)					      General Commands Manual					      nullmailer-inject(1)

NAME
nullmailer-inject - Reformat and inject a message into the queue. SYNOPSIS
nullmailer-inject [-a] [-b] [-e] [-f sender] [-h] [recipient [recipient ...]] DESCRIPTION
This program reads a email message from standard input, reformats its header to comply with RFC822, and sends the resulting message to the queue. HEADER FIELDS The following lines are parsed for recipient addresses: To, Cc, Bcc, Apparently-To, Resent-To, Resent-Cc, and Resent-Bcc. The following sender address lines are parsed and rewritten: Sender, From, Reply-To, Return-Path, Return-Receipt-To, Errors-To, Resent- Sender, Resent-From, and Resent-Reply-To. If the Return-Path header field is present and contains a single address, its contents will be used to set the envelope sender address. If the message contains any of the following fields, it is treated as a resent message: Resent-Sender, Resent-From, Resent-Reply-To, Resent-To, Resent-Cc, Resent-Bcc, Resent-Date, Resent-Message-ID. If the message is resent, only the recipient fields prefixed with Resent- are examined for addresses. Any occurrences of Bcc, Resent-Bcc, Return-Path, or Content-Length are discarded after they are parsed (if necessary). If the header lacks a Message-Id field, a unique string is generated and added to the message. If the header lacks a Date field, the cur- rent local date and time in RFC822 format is appended to the message. If the message has no To or Cc fields, the following line is appended to the message: Cc: recipient list not shown: ; ADDRESS LISTS Address lists are expected to follow the syntax set out in RFC822. The following is a simplified explanation of the syntax. An address list is list of addresses separated by commas. An individual address may have one of the following three forms: user@fqdn, com- ment<user@fqdn>, or phrase:address-list;. Any of the first two forms may be used within the address list of the third form. Any word con- taining special characters must be placed in double quotes and the special characters must be preceded with a backslash. Comments may be placed between addresses in parenthesis. All comments are ignored. Addresses lists are reformatted as they are parsed for ease of later re-parsing when the message reaches the destination(s). If an address is missing a fqdn, nullmailer-inject adds one. OPTIONS
-a Use only the command line arguments as recipient addresses. Ignore the header recipient lines. -b Use both the command line arguments and data from the message header as recipient addresses. -e Use either the command line arguments (if there are any) or data from the message header (if there are no arguments) as the recipi- ent addresses. -f sender Set the envelope sender address to sender . -h Use only data from the message header as the recipient addresses. -n Do not queue the message, but print the reformatted contents to standard output. -v Print out the envelope (sender and recipient addresses) preceding the message when printing the message to standard output. RETURN VALUE
Exits 0 if it was successful, otherwise it prints a diagnostic message to standard output and exits 1. ENVIRONMENT
The environment variable NULLMAILER_FLAGS is parsed and the behavior of nullmailer-inject is modified if any of the following letters are present: c Use "address (comment)" style in the generated From field instead of the default "comment <address>" style. f Ignore and remove any From header lines and always insert a generated one. i Ignore and remove any Message-Id header lines. s Ignore and remove any Return-Path header lines. t Insert a To line containing a list of the recipients if the header does not contain either a To or a Cc field. If the message is determined to be a resent message (see above), a Resent-To field is added if the header does not contain either a Resent-To or a Resent-Cc field. The user name is set by NULLMAILER_USER, MAILUSER, USER, or LOGNAME, whichever comes first. If none of the above are set the name is taken from the password file, or set to unknown if that fails. The host name is set by the canonicalized value of NULLMAILER_HOST, MAILHOST, or HOSTNAME, whichever comes first, or the defaulthost config file if none of the above are set (see below). The full name of the user is set by NULLMAILER_NAME, MAILNAME, or NAME, whichever comes first. The user and host name of the envelope sender default to the user and host name set above, but may be overridden by NULLMAILER_SUSER and NULLMAILER_SHOST. If NULLMAILER_QUEUE is set, the program named is used in place of nullmailer-queue to queue the formatted message. CONTROL FILES
When reading the following files, a single line is read and stripped of all leading and trailing whitespace characters. defaultdomain The content of this file is appended to any host name that does not contain a period (except localhost), including defaulthost and idhost. Defaults to the value of the /etc/mailname system file, if it exists, otherwise the literal name defauldomain. defaulthost The content of this file is appended to any address that is missing a host name. Defaults to the value of the /etc/mailname system file, if it exists, otherwise the literal name defaulthost. idhost The content of this file is used when building the message-id string for the message. Defaults to the canonicalized value of defaulthost. /etc/mailname The fully-qualifiled host name of the computer running nullmailer. Defaults to the literal name me. SEE ALSO
nullmailer-queue(8) NOTES
This document glosses over very many details of how address parsing and rewriting actually works (among other things). nullmailer-inject(1)
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy