(error "Sending failed; no recipients"))
(let* ((file-data (concat
smtpmail-queue-dir
- (time-stamp-strftime
- "%02y%02m%02d-%02H%02M%02S")))
+ (mapconcat
+ (lambda (arg) (format "%x" arg))
+ (current-time) "")))
(file-elisp (concat file-data ".el"))
(buffer-data (create-file-buffer file-data))
(buffer-elisp (create-file-buffer file-elisp))
(set-buffer buffer-data)
(erase-buffer)
(insert-buffer tembuf)
- (write-file file-data)
+ (write-region-as-binary (point-min) (point-max) file-data)
(set-buffer buffer-elisp)
(erase-buffer)
(insert (concat
(end-of-line)
(point))))
(load file-msg)
- (setq tembuf (find-file-noselect file-msg))
+ (setq tembuf (find-file-noselect-as-binary file-msg))
(if smtpmail-recipient-address-list
(if (not (smtp-via-smtp user-mail-address
smtpmail-recipient-address-list tembuf))