Commit 24109469 authored by Simon Josefsson's avatar Simon Josefsson
Browse files

(smtpmail-via-smtp): Fall back to user-mail-address as sender.

parent 311ff235
2002-11-13 Simon Josefsson <jas@extundo.com>
* mail/smtpmail.el (smtpmail-via-smtp): Fall back to
user-mail-address as sender.
2002-12-09 Markus Rost <rost@math.ohio-state.edu>
* configure.in (*-sunos5*, *-solaris*): Revert previous change -
......
......@@ -541,7 +541,9 @@ This is relative to `smtpmail-queue-dir'.")
(host (or smtpmail-smtp-server
(error "`smtpmail-smtp-server' not defined")))
(port smtpmail-smtp-service)
(envelope-from (mail-envelope-from))
(envelope-from (or (mail-envelope-from)
smtpmail-mail-address
user-mail-address))
response-code
greeting
process-buffer
......@@ -691,11 +693,10 @@ This is relative to `smtpmail-queue-dir'.")
"")))
; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn)))
(smtpmail-send-command process (format "MAIL FROM: <%s>%s%s"
(or envelope-from
smtpmail-mail-address)
envelope-from
size-part
body-part))
(if (or (null (car (setq response-code (smtpmail-read-response process))))
(not (integerp (car response-code)))
(>= (car response-code) 400))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment