Results 1 to 2 of 2

Thread: Help sending email but removing signature via VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Help sending email but removing signature via VBA

    I have my primary email and then I can send from another (Alt email), but that alt email is not an account that is added to my outlook, but I can send/receive from it. Hope that makes sense. Since the alt email account is not added, then I can't set it to have a default signature. Therefore I use this code to open a template and change the sending from. Problem is that it still adds the default signature. Before I could alter the registry to stop this, but I can no longer access the registry. I need a way to open the template without adding my default signature. Can anyone help!?

    ' Opens Email Disclosure Template
    Sub OpenEmailTemplate()
        Dim oAccount As Outlook.Account
        For Each oAccount In Application.Session.Accounts
            ' If oAccount = "testATtest.com" Then
                Set temp = Application.CreateItemFromTemplate("file path here")
                temp.SentOnBehalfOfName = "sendATtest.com"
                temp.Subject = "PERSONAL AND CONFIDENTIAL COMMUNICATION"
                temp.Display
            ' End If
        Next
        Set temp = Nothing
    End Sub
    Last edited by Aussiebear; 03-01-2025 at 01:08 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •