From: Richard M. Stallman Date: Tue, 18 Jun 1996 22:39:51 +0000 (+0000) Subject: (smtpmail-via-smtp): Bracket names in FROM and RCPT TO commands. X-Git-Tag: emacs-19.34~409 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b21dc7615e87908d113de43a4bce299beb7ba3a5;p=emacs.git (smtpmail-via-smtp): Bracket names in FROM and RCPT TO commands. --- 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: ; (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: (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))))