Results 1 to 4 of 4
  1. #1
    upnorth is offline Novice
    Windows 10 Access 2007
    Join Date
    Sep 2024
    Posts
    1

    CDO email Oauth2

    Have used this to send emails from a MS Access database for a number of years.
    The send using has just been changed to OAuth2
    ​Can CDO deal with that ?
    David

    TIA





    Set cdomsg = CreateObject("CDO.message")
    With cdomsg.Configuration.Fields
    .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'NTLM method
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp-mail.outlook.com"
    .Item("http://schemas.microsoft.com/cdo/configuration/smptserverport") = 587
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = True
    .Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
    .Item("http://schemas.microsoft.com/cdo/configuration/sendusername") = "****@outlook.com"


    .Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "****"
    .Update
    End With

  2. #2
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    No idea TBH, but a quick Google gives me, among many other links https://learn.microsoft.com/en-us/ex...ecommendations
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  3. #3
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,569
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

  4. #4
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,424
    Sometimes it only takes the first post ever by a forum user to end up on someone's ignore list.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. CDO email (gmail) make an image clickable
    By Gina Maylone in forum Access
    Replies: 5
    Last Post: 08-13-2016, 07:21 AM
  2. Replies: 3
    Last Post: 06-19-2016, 07:46 AM
  3. send email with attachment using Gmail (CDO)
    By DubCap01 in forum Programming
    Replies: 2
    Last Post: 05-20-2016, 03:12 AM
  4. CDO email
    By Rehabman in forum Programming
    Replies: 0
    Last Post: 01-26-2015, 03:05 PM
  5. Send email using CDO, get email addresses from table
    By marvinac1 in forum Programming
    Replies: 3
    Last Post: 12-22-2014, 12:54 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
  •  
Other Forums: Microsoft Office Forums