+ Reply to Thread
Results 1 to 3 of 3

NEW Outlook

  1. #1
    Registered User
    Join Date
    10-30-2021
    Location
    Copenhagen area, Denmark
    MS-Off Ver
    365
    Posts
    14

    Question NEW Outlook

    I have some projetcs that use the COM method (Component Object Model - Microsoft Outlook Object Library, CreateObject("Outlook.Application"), etc.; see https://www.automateexcel.com/vba/send-emails-outlook/) to send a bunch of mails from the default account in Outloook (a Microsoft 365 account) to various recipients, typically attaching a tailored Excel-sheet, either as Excel-sheet or "printed" by VBA to a PDF. Works like a charm!

    Alas, this does not work anymore if the user (in one case myself; in another a customer) has NEW Outlook installed. Apparently, NEW Outlook has abandoned the COM model. I have switched back to classic Outlook for now, but my customer may be forced to use NEW Outlook, and I suppose we all will at some point.

    There is also a CDO method (Microsoft CDO for Windows 2000 Library, CreateObject("CDO.Message"), etc.; see https://codekabinett.com/rdumps.php?...access-vba-cdo). But it seems not to support STARTTSL; that seems to be a showstopper for me.

    Is there any way I can rewrite my code to work with NEW Outlook - or perhaps more precisely, to work without classic Outlook? Is there another mail client or component one can install and link in somehow, or any other way a VBA/Excel project can send mail? Or can the STARTTSL issue be solved?

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,032

    Re: NEW Outlook

    Please Login or Register  to view this content.
    Apparently the earliest would be 2029
    https://techcommunity.microsoft.com/...=M365-MVP-9501


    COM Addins will not be supported.
    https://support.microsoft.com/en-us/...b-ba7822bc7627


    Voice your objection here
    https://feedbackportal.microsoft.com...c-000d3ae46fcb

  3. #3
    Valued Forum Contributor
    Join Date
    09-18-2023
    Location
    Geogia, USA
    MS-Off Ver
    365
    Posts
    310

    Re: NEW Outlook

    The quick answer is to rewrite the stuff in Excel in a VB.NET using a Winform project (just for the ease of conversion) to make standalone exe, have it read the Excel file (use the Microsoft Office Interop), you can tell Excel to print to a PDF or copy and paste the data directly, and then use a NuGet package for sending emails (or System.Net.Mail). This is in C# but it is pretty easy to convert https://learn.microsoft.com/en-us/vi...y?view=vs-2022

    This decouples any dependency on Outlook as the mail processor.

    A super simple example (edit:>) of opening, reading, and closing Excel via the Interop
    Please Login or Register  to view this content.
    Last edited by AliGW; 04-24-2024 at 06:33 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 02-02-2024, 12:24 PM
  2. Replies: 2
    Last Post: 06-09-2021, 09:32 AM
  3. Replies: 1
    Last Post: 08-21-2018, 01:48 PM
  4. Outlook 2007, Referencing mail Item created from outlook template
    By thusidie in forum Outlook Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2014, 04:33 PM
  5. [SOLVED] Using Exell VBA to launch Outlook Email while separating lines in the body of Outlook.
    By Tazyote in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-27-2013, 01:18 PM
  6. [SOLVED] VBA Macro to print to Pdf format and place as attachment in Outlook (Excel & Outlook 2007)
    By Webman1012 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-29-2013, 01:25 PM
  7. Share Task From Outlook 2010 to Outlook 2007 and Vice Versa
    By Hudas in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 10-22-2012, 03:01 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1