-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Friday, August 28 at 05:49 PM, quoth Cristopher Thomas:
> I have two separate email accounts, and I need to be able to send mail 
> from each of them.  Is there a way to set up the two accounts and then 
> specify which I will be sending from at some point in the 
> composition/sending process?

The short answer is: yes.

Here's the long answer:

Email is, of course, far more complicated than even that. You can, for 
example, usually send email *through* an account that claims to be 
*from* the other account. This is sometimes useful, and sometimes not. 
For example, I have many email addresses on several domains, and I can 
send email "from" any of them through my primary email server. Many 
people do this with their ISP's email server.

What I'm saying is that an email address and an account on a server 
that will allow you to send ("relay") email are separate. As such, 
mutt treats them separately.

So, you can change the "from" address of your mail (e.g. the $from 
setting) and you can change the server through which you will send 
your mail (e.g. the $smtp_url setting). If you like, you can change 
them both at the same time.

There are two ways that people usually handle this with mutt. They 
typically either use $reverse_name to ensure that the return address 
they use is appropriate to the messages they're replying to and then 
use a send-hook to match the $smtp_url setting to that address OR they 
create a macro that can be triggered in the compose menu (i.e. 
immediately after composing a message and before it is sent) that 
changes both the return address and the sending server.

Here's an example of two of those macros (imagine each one is all on 
one line):

     macro compose <F1> "<enter-command>set
     smtp_url=smtp://domain1.com
     [email protected]<enter><edit-from><kill-line>[email protected]<enter>"

     macro compose <F2> "<enter-command>set
     smtp_url=smtp://domain2.org
     [email protected]<enter><edit-from><kill-line>[email protected]<enter>"

Make sense?

~Kyle
- -- 
The world is full of willing people, some willing to work, the rest 
willing to let them.
                                                        -- Robert Frost
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iQIcBAEBCAAGBQJKmFgnAAoJECuveozR/AWexK8P+QH2V+g0lQs38CfhKOhAsI2P
x0fb4x7cQrSun7WlSHgYDyoqw1wA0gq0cyiQlTb38UzV7WKBeyg1LbgPIrK1k7i0
sz9CmQHsmD6QQrOAXELiM07eFsvhmnuOsfpusrhBp13P1gjX6ivlwQaOsWpna9hs
H/LOudcqfdLYwFKcx5FC37afixBnX7a4wDVw/1lZ0YmaT0gU2OQlWYsPf0UsdIVg
N3bC1VJdB5fP1/usN3M2wKokj5yRMIZvHRnRJDyjOReiS41yBpsKMp1mNpzEr3cP
mQ/llAXJEywPLGWGaefU8DbFlksSzYYOJBsj6TBpXCdxy1iKI6e2pK5nfmmpxAos
+SvcjjlP1q4qfytghpWQCffV4Z+znrG/EFihQghd+wZ/xb8UFv85fivVrUFufc1p
0TShcRF8OX8G7+5ZZmJqU/9CPr0ZKSuh51Wx4W3HmKjd6Vq8t9xv1k2OvDEOuNWh
gUBNG1VVImMCp8DGQU2bDSuBYVOR9tPuPAl7RdHuiweM9LJc6MyLgU88lwGeZj15
8LDN531EUZze54eFHxOF9nTh9Q//77NHapJyeC9pOAJQtiMXbWP1Nm15Wzu//DF1
wS1Pl2oFZrpjNntER+5wLYiCpPmvgEzZ5dIi8TgXyAkhGKZY3oINg9zF1nnhPHQD
FLddQ0wST192qHcj2+3t
=1ylx
-----END PGP SIGNATURE-----

Reply via email to