help-gnu-emacs
[Top][All Lists]
Advanced

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

Sending emails from multi-accounts + input user/passwords of imap accoun


From: Sharon Kimble
Subject: Sending emails from multi-accounts + input user/passwords of imap accounts
Date: Thu, 03 Apr 2014 10:15:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

How can I input the user and passwords for an imap account please? I have two
imap accounts with gandi.net and they are both sharing the same inbox, so I'm
hoping to separate them better.

The relevant code is -
--8<---------------cut here---------------start------------->8---
(setq gnus-secondary-select-methods '((nnml "")
                                        (nnimap "sharons"
                                                (nnimap-address 
"mail.gandi.net")
                                                (nnimap-inbox "INBOX")
                                                                                
                (nnimap-server-port 993)
                                                                                
        :user "pooh@sharons.org.uk"
                                                                                
        :password "rhubarbandcustard"
                                                (nnimap-stream ssl))
                                                                                
(nnimap "gmail"
                                                                                
        (nnimap-address "imap.gmail.com")
                                                (nnimap-server-port 993)
                                                (nnimap-stream ssl)) 
                                        (nnimap "tgmeds"
                                                (nnimap-address 
"mail.gandi.net")
                                                                                
            (nnimap-inbox "INBOX")
                                                (nnimap-server-port 993)
                                                                                
                :user "bear@tgmeds.org.uk"
                                                                                
                :password "applepie"
                                                (nnimap-stream ssl))
                                        )
        gnus-select-method '(nnnil ""))
--8<---------------cut here---------------end--------------->8---

But the syntax is obviously wrong as gnus will not work with it in as shown
above. I do have the same details in '.authinfo' but it doesn't seem to be
being read by gnus.

How can I also be able to send emails from each of these accounts please?
Currently I'm all setup with smtpmail as shown here -
--8<---------------cut here---------------start------------->8---
(setq smtpmail-smtp-server "smtp.talktalk.net") 
--8<---------------cut here---------------end--------------->8---

So how can I send emails from several accounts please?

Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
my git repo = https://bitbucket.org/boudiccas/dots
TGmeds = http://www.tgmeds.org.uk
Debian testing, Fluxbox 1.3.5, emacs 24.3.1

Attachment: pgp9Mh3WJ5cTh.pgp
Description: PGP signature


reply via email to

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