changeset 40033:ba4d3133ad27

(smtpmail-via-smtp): Use mail-envelope-from if set.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Thu, 18 Oct 2001 20:48:04 +0000
parents 03befbe11aaa
children 91f270b5cccd
files lisp/mail/smtpmail.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/smtpmail.el	Thu Oct 18 20:24:09 2001 +0000
+++ b/lisp/mail/smtpmail.el	Thu Oct 18 20:48:04 2001 +0000
@@ -468,7 +468,8 @@
 		     "")))
 ;	      (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn)))
 	      (smtpmail-send-command process (format "MAIL FROM: <%s>%s%s"
-						     user-mail-address
+						     (or mail-envelope-from
+							 user-mail-address)
 						     size-part
 						     body-part))