[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamically switching send-mail settings

From: Tory S. Anderson
Subject: Re: Dynamically switching send-mail settings
Date: Sun, 08 Feb 2015 21:54:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

In this case it happens even if not a gmail account, and unfortunately a new 
day didn't fix it. Two questions: First, with this message:

    Opening TLS connection with `gnutls-cli --insecure -p 587'...failed
    Opening TLS connection with `gnutls-cli --insecure -p 587 
--protocols ssl3'...failed
    Opening TLS connection with `openssl s_client -connect 
-no_ssl2 -ign_eof'...done

Is it expected to cycle through different TLS methods? 
Second, could my change be occurring too late? Right now I have my function on 
a hook as follows:
--8<---------------cut here---------------start------------->8---
(add-hook 'message-send-hook 'change-smtp)
;(add-hook 'message-send-mail-hook 'change-smtp)
--8<---------------cut here---------------end--------------->8---

I've tried both hooks (one is supposed to be earlier in the send process) and 
the results don't change. The original version that worked <24.4 didn't use a 
hook it all; as far as I can tell it did some magic I don't understand with 

--8<---------------cut here---------------start------------->8---
(defvar %smtpmail-via-smtp (symbol-function 'smtpmail-via-smtp))

(defun smtpmail-via-smtp (recipient smtpmail-text-buffer)
  (with-current-buffer smtpmail-text-buffer
  (funcall (symbol-value '%smtpmail-via-smtp) recipient
--8<---------------cut here---------------end--------------->8---

Is changing the server/port settings in one of the send-hooks too late? And 
what is that original magic with the symbols and symbol-function?

Robert Thorpe <address@hidden> writes:

> address@hidden (Tory S. Anderson) writes:
>> And, at that, it freezes with the final line in my message buffer until I 
>> C-g to safety. Any ideas why it freezes at this point, having done the 
>> dynamic setting correctly? Note that I've successfully sent with this 
>> account today before I started working on the dynamic switching, so I know 
>> the settings are otherwise correct. Below are the functions I'm using: 
> One of the peculiarities of gmail is that if you're using it over IMAP,
> POP and SMTP.  It limits the number of transactions you can do with it
> per day.  People who are having problems with their config often hit
> this limit while experimenting.
> However, AFAIK it only applies to receive operations (i.e. IMAP & POP),
> not to SMTP.  Maybe I'm wrong about that though.  Regardless your setup
> may magically start working tomorrow.
> BR,
> Robert Thorpe

reply via email to

[Prev in Thread] Current Thread [Next in Thread]