Outlook 2010 - Always Send from Default Account

Page 3 of 3 FirstFirst 123

  1. Posts : 1
    Windows 7 Ultimate x64
       #20

    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 Computer


  2. Posts : 1
    Windows 7; 64 bit
       #21

    it does not work...


    After following all steps, it doesn't work!
    Is it possible for shared accounts as well?
      My Computer


  3. Posts : 8
    Windows 7 Ultimate x64
       #22

    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 Computer


  4. Posts : 1
    Win7 32
       #23

    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 Computer


 
Page 3 of 3 FirstFirst 123

  Related Discussions
Our Sites
Site Links
About 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 16:57.
Find Us