
NAME
    SendMail

SYNOPSIS
    SendMail <mailfile -f user -R realname -t to -c ccto -b bccto -s subject -r -raw

DESCRIPTION

    -r is specified to force sendmail not to process the 'From ' header
    and is automatically specified when sendmail is run as rmail.  Note
    that if run as rmail, the command line contains only To: addresses.
    options are ignored.

    For sending mail, all options are optional except -f.  The 'from'
    user must be specified.  SendMail will process and regenerate the
    Subject:, To:, Cc:, and Bcc: lines, appending any additional
    specifications on the command line.  SendMail will generate From:,
    Date:, and other required headers, then send the mail to the
    appropriate destinatoin.

    A given mail file consists of zero or more headers, a blank line,
    then the mail contents.  The -raw option may be used for unformatted
    mail (see below)

    -f user

	Specify user sourcing the mail, generates a 'From:' header.  This
	header will be overridden by any From: headers in the data file

    -R realname

	Specify real name of user sourcing the mail.  This name is placed
	in parenthesis after the user name in the generated 'From:' header.

    -t to

	specify the email address to send the mail to

    -c ccto

	specify the email address to send a carbon copy to

    -b bccto

	specify the email address to send a blind carbon copy to
	(other recipients do not know you sent the mail to this
	 address because the Bcc: line is never propogated)

    -s subject

	specify the subject of the article.  The subject must be placed
	in quotes if it contains tabs or spaces.

    -r

	Specify that sendmail is to go into 'rmail' mode.  This mode also
	occurs if sendmail is renamed to rmail and run as rmail.  In this
	mode, the very first line of the data file MUST be in the
	'From ' form (From with a space and no colon), as in UUCP received
	mail.  After this headers are expected, then a blank line, then
	mail data.

	If not specified and sendmail is run, the 'From ' is not
	expected, but the headers, blank line, and mail are.

    -raw

	Specify that the the TEXT BODY ON STDIN IS UNFORMATTED.  Sendmail
	does not attempt to scan the text body for headers but assumes it
	is entirely data.  Otherwise, the text body must contain zero or
	more headers, a blank line, and then the text body.

	For example:	sendmail <datafile -f root -t marco -s test

	Where the datafile (on stdin) is not formatted... does not contain
	any headers or even necessarily a blank line at the beginning.

UULIB:Config

    MaxRMailLen
	If 0, means only one recipient per queue file is allowed (some
	mailers are restricted like this).  If non-zero, then specifies
	maximum length, in bytes, that the 'C rmail' line in the X.
	file may be.  If the recipient list is larger than the buffer
	length, then multiple queue files will be generated.

    MailBounce	Y/N
	Enables mail bouncing, Default N, remember that you must also
	then remove the '*' (default node) entry in your Domain file
	to have this do anything reasonable.

    DomainPath	Y/N
	(Also enables DomainPath for news), places your fully domained
	host name in mail headers instead of USENET node name.	Use ONLY
	if your feed requires it.  Default N


NOTES

    (1) any unqualified To: or Cc: fields (i.e. local users) will be
	qualified with your machine's full domain name.  This includes
	local users in aliases.

    (2) sendmail will attempt to group multiple recipients of a given
	message into a single batch file, if possible.	(Previous to
	1.07 sendmail would generate a batch file for each recipient)

    (3) see MAN/ALIASES for changes in the way aliases are expanded on
	the To: field.	The default as of 1.07 is to expand aliases.
	A double-colon specification in the alias causes it to NOT be
	expanded in the To: field.

