Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Outlook 2010 - Always Send from Default Account

21 May 2013   #20
liammcclean

Windows 7 Ultimate x64
 
 
Reply macro from within a mail item

Here is some sample code that will work from within a mail item. To reply/reply all/forward from a specific account:

Code:
Public Sub SpecificAccountReply_InMailWindow()
    Dim oAccount As Outlook.Account
    Dim oMail As Outlook.MailItem
   
    For Each oAccount In Application.Session.Accounts
        If oAccount = "Account Name" Then
            'Set oMail = Application.ActiveExplorer.Selection(1).Reply
            Set oMail = ActiveInspector.CurrentItem.Reply
            oMail.SendUsingAccount = oAccount
            oMail.Display
        End If
    Next
End Sub

Public Sub SpecificAccountReplyAll_InMailWindow()
    Dim oAccount As Outlook.Account
    Dim oMail As Outlook.MailItem
   
    For Each oAccount In Application.Session.Accounts
        If oAccount = "Account Name" Then
            'Set oMail = Application.ActiveExplorer.Selection(1).Reply
            Set oMail = ActiveInspector.CurrentItem.ReplyAll
            oMail.SendUsingAccount = oAccount
            oMail.Display
        End If
    Next
End Sub

Public Sub SpecificAccountForward_InMailWindow()
    Dim oAccount As Outlook.Account
    Dim oMail As Outlook.MailItem
   
    For Each oAccount In Application.Session.Accounts
        If oAccount = "Account Name" Then
            'Set oMail = Application.ActiveExplorer.Selection(1).Reply
            Set oMail = ActiveInspector.CurrentItem.Forward
            oMail.SendUsingAccount = oAccount
            oMail.Display
        End If
    Next
End Sub
This code would need to be added as 3 different macros, in the same way as the above posts.

Hope this is helpful - I know that it is a year late!


My System SpecsSystem Spec
.
29 Oct 2013   #21
Henkie1965

Windows 7; 64 bit
 
 
it does not work...

After following all steps, it doesn't work!
Is it possible for shared accounts as well?
My System SpecsSystem Spec
06 Feb 2014   #22
phuz

Windows 7 Ultimate x64
 
 
Problem in Outlook 2013

This VBA insert works pretty well, but I have an issue if I delete the new mail message I created. It gets stuck in the Outbox of the account from which I have set as "default".

Is there a way around this?

Update:
I found the answer. Get rid of the VBA code and do this instead:

In Outlook 2013, the key is:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\Options\Mail DWORD value: NewItemsUseDefaultSendingAccount Value: 1 In my case, the key "Mail" did not exist so I had to add it, along with the DWORD.
Works great now and doesn't leave any discarded messages sitting in the Outbox.
My System SpecsSystem Spec
24 Apr 2016   #23
johanbackman

Win7 32
 
 

OK, i tried this and it works as far as I can see. Great!

It would for me be perfect if I also could set a specific email adress in CC when I click any of the custom buttons.

I use my default account and it is not always that I want to have this adress in CC, only when I respond to emails sent through a secondary account. So having both the ordinary reply button and the custom reply is perfect. And it would be fantastic if it also could set a CC email adress.

Is there anyone that could help me modify the macros to do that?
My System SpecsSystem Spec
.

Reply

 Outlook 2010 - Always Send from Default Account




Thread Tools




Similar help and support threads
Thread Forum
Making outlook use default account to send whether new email or reply
Funny thing, but when you choose a default account outlook is supposed to use that one as the default send account. So you compose a new mail and it should use that account as the from address. But it doesn't always work. Yes, i know u can CHOOSE any account by clicking on the "from" button and...
Browsers & Mail
"Only send" account i Outlook 2010?
Hi Is it possible to create a "send only" account in Outlook 2010? I don't want to receive mails on the account. I use MAPI and no Exchange server. Peter
Microsoft Office
Outlook 2010 won't send - straight to outlook
When I'm at work outlook 2010 will send e-mails without any problems. When I go home after work and try to send an e-mail, they go straight to the outbox folder. They won't send until I'm back at work the following day. I don't understand. Any help will be appreciated. Thanks
Microsoft Office
Outlook Connector (Outlook 2010) Won't send/receive
Hi, I've just started using Outlook 2010 instead of WLM 2010, because it is getting too slow and really bugging me. I'm able to send/receive mail from a web account (from a website I administrate), my Gmail and ONE windows live account, but my main email (the second windows live account) just...
Browsers & Mail
Outlook 2010 won't send
Hi I have Outlook 2010 on Win 7 32 bit. I keep getting the sending error in the attachment. I have spent an hour on the phone with my ISP checking and double checking settings and everything is as it should be. I have also tried disabling all add ins and this has not helped. Any suggestions?
Browsers & Mail
Outlook 2010 Won't Send
Since upgrading, I can't send from my Work account. It just times out. The account is IMAP connected by SSL. No problems when I used 2007 and I just sent from my phone so I know the account is working. Settings haven't changed and are correct. I've tried disabling all add ins. Any ideas?
Microsoft Office


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:42.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App