smtpmail-send-itaccording to the system. Other valid values include
message-send-mail-with-sendmail pipes your article to the
sendmail binary for further queuing and sending. When your local
system is not configured for sending mail using
sendmail, and you
have access to a remote SMTP server, you can set
smtpmail-send-it and make
sure to setup the
smtpmail package correctly. An example:
(setq message-send-mail-function 'smtpmail-send-it smtpmail-default-smtp-server "YOUR SMTP HOST")
To the thing similar to this, there is
message-smtpmail-send-it. It is useful if your ISP
requires the POP-before-SMTP authentication.
See POP before SMTP.
If you have a complex SMTP setup, and want some messages to go via one mail server, and other messages to go through another, you can use the ‘X-Message-SMTP-Method’ header. These are the supported values:
X-Message-SMTP-Method: smtp smtp.fsf.org 587
This will send the message via ‘smtp.fsf.org’, using port 587.
X-Message-SMTP-Method: smtp smtp.fsf.org 587 other-user
This is the same as the above, but uses ‘other-user’ as the user
name when authenticating. This is handy if you have several
SMTP accounts on the same server.
This will send the message via the locally installed sendmail/exim/etc installation.
nil(which is the default), these headers will be removed before mailing when sending messages via MH. Set it to
nilif your MH can handle these headers.
E.g., if you wish to set the envelope sender address so that bounces
go to the right place or to deal with listserv's usage of that address, you
might set this variable to
nilmeans don't add ‘-f username’ to the sendmail command line. Doing so would be even more evil than leaving it out.
nil, this specifies the address to use in the SMTP envelope. If it is
user-mail-address. If it is the symbol
header, use the ‘From’ header of the message.
nilif the system's mailer runs the header and body together. (This problem exists on SunOS 4 when sendmail is run in remote mode.) The value should be an expression to test whether the problem will actually occur.
nil(which is the default), the size is unlimited.