summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-18 22:39:51 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-18 22:39:51 +0000
commitb21dc7615e87908d113de43a4bce299beb7ba3a5 (patch)
tree789c3f44f022099132c10718219f3c36178e4d24 /lisp/mail
parent0e2701ca22814e2024715bc8f09805992ef5ce5e (diff)
downloademacs-b21dc7615e87908d113de43a4bce299beb7ba3a5.tar.gz
(smtpmail-via-smtp): Bracket names in FROM and RCPT TO commands.
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/smtpmail.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/mail/smtpmail.el b/lisp/mail/smtpmail.el
index 88042b9555f..00e07e9c059 100644
--- a/lisp/mail/smtpmail.el
+++ b/lisp/mail/smtpmail.el
@@ -267,7 +267,7 @@ don't define this value.")
;; MAIL FROM: <sender>
; (smtpmail-send-command process (format "MAIL FROM:%s@%s" (user-login-name) (smtpmail-fqdn)))
- (smtpmail-send-command process (format "MAIL FROM:%s" user-mail-address))
+ (smtpmail-send-command process (format "MAIL FROM: <%s>" user-mail-address))
(if (or (null (car (setq response-code (smtpmail-read-response process))))
(not (integerp (car response-code)))
@@ -278,7 +278,7 @@ don't define this value.")
;; RCPT TO: <recipient>
(let ((n 0))
(while (not (null (nth n recipient)))
- (smtpmail-send-command process (format "RCPT TO: %s" (nth n recipient)))
+ (smtpmail-send-command process (format "RCPT TO: <%s>" (nth n recipient)))
(setq n (1+ n))
(if (or (null (car (setq response-code (smtpmail-read-response process))))