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 905527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:14:06+00:00 2026-05-15T16:14:06+00:00

I have a webpage that has a button that sends a letter on the

  • 0

I have a webpage that has a button that sends a letter on the page to an email recipent. Currently we are use Lotus Notes and with VB script, we are able to create an object of Lotus Notes and one of the properties for this object is PutInFolder. After the user clicks on the email button, the script will send the email and also put save the email in a certain folder on the user’s computer. Our company is now switching over to Outlook 2007 and I’m looking to do the same thing with an Outlook object instead. Our development is local intranet only, and there are only a few users that will have access to this. Anyway, my problem is I cannot seem to find the same functionality with an Outlook Application.

I do have the send of the email currently working using this logic. Does anyone have any ideas on how to save the email in the user’s outlook folder? I tried looking for a list of properties that I can call but I cannot find anything searching. Maybe I don’t have the right terminalogy in the searches.

Thank you.

sub send_mailvb(sendto, sendcc, sendbcc, subject_text, body_text, attachment1, attachment2, attachment3)

'Open mail, adress, attach report
dim objOutlk    'Outlook
dim objMail 'Email item
dim strMsg
const olMailItem = 0
'Create a new message
    set objOutlk = createobject("Outlook.Application")
    set objMail = objOutlk.createitem(olMailItem)

' Setup send to
    objMail.To = sendto

' Setup send cc
If sendcc <> "" Then
objMail.cc = sendcc
End If

' Setup send bcc
If sendbcc <> "" Then
objMail.bcc = sendbcc
End If

'Set up Subject Line
    objMail.subject = subject_text

'Add the body

    strMsg = body_text & vbcrlf

'Add an attachments
If attachment1 <> "" Then
    objMail.attachments.add(attachment1)
End If

If attachment2 <> "" Then
    objMail.attachments.add(attachment2)
End If

If attachment3 <> "" Then
    objMail.attachments.add(attachment3)
End If

    objMail.body = strMsg
    objMail.display 'Use this to display before sending, otherwise call objMail.Send to send without reviewing

'Clean up
set objMail = nothing
set objOutlk = nothing

End Sub

  • 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-15T16:14:06+00:00Added an answer on May 15, 2026 at 4:14 pm

    For future reference… I found the solution I was looking for. It wasn’t too bad of a mess. Here’s the modified source to replicate the Send and save email to a specific folder incase someone else comes looking. Thanks to Tester101 for the website I was looking for. Again this is vbscript imbedded in the HTML page.

    
    
    
        sub send_mailvb(sendto, sendcc, sendbcc, subject_text, body_text, attachment1, attachment2, attachment3)
    
        'Open mail, adress, attach report  
    
        dim objOutlk    'Outlook
        dim objMail 'Email item
        dim strMsg
        dim myInbox
        const olMailItem = 0
        'Create a new message
            set objOutlk = createobject("Outlook.Application")
            Set objNameSpace = objOutlk.Session 
            set objMail = objOutlk.createitem(olMailItem)
    
            Set myNameSpace = objOutlk.GetNamespace("MAPI")
    
        Set myExplorer = objOutlk.ActiveExplorer
    
    
        ' 6 at least on my machine pointed to the Inbox (should be the same as constant olFolderInbox).  Within the Inbox I have a folder called Test
        Set myExplorer.CurrentFolder = myNameSpace.GetDefaultFolder(6).Folders("Test")
        Set myFolder = myExplorer.CurrentFolder
    
        ' Setup send to
            objMail.To = sendto
    
        ' Setup send cc
        If sendcc  "" Then
        objMail.cc = sendcc
        End If
    
        ' Setup send bcc
        If sendbcc  "" Then
        objMail.bcc = sendbcc
        End If
    
        'Set up Subject Line
            objMail.subject = subject_text
    
        'Add the body
    
            strMsg = body_text & vbcrlf
    
        'Add an attachments
        If attachment1  "" Then
            objMail.attachments.add(attachment1)
        End If
    
        If attachment2  "" Then
            objMail.attachments.add(attachment2)
        End If
    
        If attachment3  "" Then
            objMail.attachments.add(attachment3)
        End If
    
            objMail.body = strMsg
            // objMail.display 'Use this to display before sending, otherwise call objMail.Send to send without reviewing
    
    
            objMail.Save
            objMail.Move(myFolder)
    
            objMail.Send
    
        'Clean up
        set objMail = nothing
        set objOutlk = nothing
    
        End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage (ASP.NET C#) that has a button: <asp:Button ID=btnHide runat=server OnClick=HidePanel
I have a webpage that has 3 file inputs. There are specific fields on
I will create a webpage that has a sidebar, and the sidebar will have
I have a webpage built with a dropdown that has a list of books.
I have a Google Map on the webpage with markers on it that has
I have created a web page that has two bars across the top of
I have a simple jQuery code that runs on a web page that has
I have a ASP.NET web page that contains many textboxes. Each textbox has a
when i refresh a part of a webpage that has a jquery ui button,
I have a webpage which has a button placed inside a div. What i

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.