mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(smtpmail-via-smtp): Bracket names in FROM and RCPT TO commands.
This commit is contained in:
parent
0e2701ca22
commit
b21dc7615e
1 changed files with 2 additions and 2 deletions
|
|
@ -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))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue