Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3598724
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:16:40+00:00 2026-05-18T20:16:40+00:00

I noticed in outlook express that there is a macros function and so I

  • 0

I noticed in outlook express that there is a macros function and so I want to play with it! Unfortanetly, I have not programmed in VB for about 5 years.

I get a lot of mailer daemons from clients and employees to my email system which someone has to go through and update our MySQL database to void the email manually.

So, I want to know if it is possible to take the emails from the mailer daemons and simply update a MySQL database with a macros? Resources or examples please?

I’m sure it is simple but my google searches come back with little help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T20:16:41+00:00Added an answer on May 18, 2026 at 8:16 pm

    Here are some rough notes.

    Dim cn As Object
    Dim sCon As String
    Dim sSQL As String
    Dim oNameSpace As Outlook.NameSpace
    Dim oItem As Outlook.MailItem
    Dim oFolder As Outlook.MAPIFolder
    
    Set cn = CreateObject("ADODB.Connection")
    
    sCon = "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=MyDB;" _
    & "User=UName;Password=PWord;Option=3;"
    
    cn.Open sCon
    
    Set oNameSpace = Application.GetNamespace("MAPI")
    Set oFolder = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)
    
    For Each oItem In oFolder.Items
        If Left(oItem.Sender, 13) = "MAILER-DAEMON" Then
            sSQL = "INSERT INTO TestTable (data) VALUES ('" & oItem.Sender & "')"
            cn.Execute sSQL
        End If
    Next
    

    See also: http://www.outlookcode.com/article.aspx?id=62
    http://www.connectionstrings.com/mysql

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I noticed in outlook express that there is a macros function and so I
I recently switched to Outlook 2007 and noticed that my VBA-macros won't work. I
I noticed today that in D2009 (with update 1), TStringStream.ReadString does not move the
Have noticed issue while testing iphone app that if one quickly opens/dismisses a modal
I noticed that a lot of tutorial instructions often have this code: $sql=SELECT *
I have a project that adds elements to an AutoCad drawing. I noticed that
So I noticed that My outlook.exe process was growing at a rate of roughly
I noticed that there are two debug perspectives in Eclipse that is setup for
I noticed that some arrays don't have a comma after the last item. I
I noticed that Google maps is providing directions in my local language (hungarian) when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.