[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus with multiple mail accounts
From: |
Robert Pluim |
Subject: |
Re: gnus with multiple mail accounts |
Date: |
Fri, 16 Oct 2020 10:50:16 +0200 |
>>>>> On Thu, 15 Oct 2020 18:12:08 -0700, Eric Abrahamsen
>>>>> <eric@ericabrahamsen.net> said:
Eric> Jeremie Juste <juste@inspiring-development.com> writes:
>> Hello,
>>
>> I would like send mail from more than one mail account from gnus.
>> I tried to use X-Message-SMTP-Method (info "(gnus) Posting Styles")
>> but I don't know how to change the smtpmail-stream-type.
>>
>>
>> So I have come up with the following function. I only need to automate
>> it to do the right assignment depending on which group I'm in. Do you
>> have any lead please?
>>
>> (defun set-smtp (arg)
>> "switch mail server"
>> (interactive "p")
>> (if (eq arg 1)
>> (setq message-send-mail-function 'smtpmail-send-it
>> smtpmail-default-smtp-server "smtp.office365.com"
>> smtpmail-smtp-server "smtp.office365.com"
>> user-mail-address "<mail1.com>"
>> smtpmail-smtp-service 587
>> smtpmail-stream-type 'starttls
>> )
>> (setq message-send-mail-function 'smtpmail-send-it
>> smtpmail-default-smtp-server "smtp.gmail.com"
>> smtpmail-smtp-server "smtp.gmail.com"
>> user-mail-address "<mail2.gmail.com>"
>> smtpmail-smtp-service 465
>> smtpmail-stream-type 'ssl
>> )
>> ))
Eric> Are you sure it doesn't work just to set host and port in the
Eric> pseudo-header? Looking at the code, it ought to be setting
Eric> `smtpmail-stream-type' correctly from the port. I assume you've tried
Eric> that and it didn't work?
Thatʼs a very recent change in emacs-master, and it only work if you're
using the SMTP TLS transport port, which is 465. 587 is the SMTP
STARTTLS submission port, and is not covered (I recommend people use
465 whenever possible). Does office365 not support port 465?
Robert
--
- gnus with multiple mail accounts, Jeremie Juste, 2020/10/15
- Re: gnus with multiple mail accounts, Eric Abrahamsen, 2020/10/15
- Re: gnus with multiple mail accounts, Jeremie Juste, 2020/10/16
- Re: gnus with multiple mail accounts,
Robert Pluim <=
- Re: gnus with multiple mail accounts, Robert Pluim, 2020/10/16
- Re: gnus with multiple mail accounts, Pankaj Jangid, 2020/10/16
- Re: gnus with multiple mail accounts, Eric S Fraga, 2020/10/16
- Re: gnus with multiple mail accounts, Robert Pluim, 2020/10/16
- Re: gnus with multiple mail accounts, Jeremie Juste, 2020/10/16
- Re: gnus with multiple mail accounts, Pankaj Jangid, 2020/10/17
- Re: gnus with multiple mail accounts, Eric S Fraga, 2020/10/17
- Re: gnus with multiple mail accounts, Robert Pluim, 2020/10/18
Re: gnus with multiple mail accounts, Pankaj Jangid, 2020/10/16