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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:32:49+00:00 2026-06-08T06:32:49+00:00

I know this question has been asked a few times in various context, but

  • 0

I know this question has been asked a few times in various context, but I have not found a clear answer. I have email implemented for an access application using outlook, but I’d like to move away from this. One of the purposes of the email is to email a user his/or password if he forgot it. They can select their username for the login screen, and if they click ‘forgot password’ and email is sent containing their login information (to the email address associated with the user name).

The problem with this is that the email function as is sends an email with outlook from the user’s machine. So, users would be able to ‘forgot password’ other usernames and view their own outlook outbox(sent items) to see the sensitive information.

Is there a way to e-mail like php’s mail function, sending mail from the server? I would like the emails to be sent from the same email address i.e(support@company.com), instead of from the user’s outlook address after a security prompt. If this is not possible, I am open to the idea of any other workarounds.

I will also add that installing any software that would have to be installed on every potential user’s machine is not feasible.

Is this possible?

  • 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-06-08T06:32:49+00:00Added an answer on June 8, 2026 at 6:32 am

    Windows includes an object called Collaborative Data Objects or CDO. This object allows you to send emails using any SMTP server assuming that other prerequisites are met (firewall open, ISP not blocking ports, account is configured on the SMTP server, SMTP server allows relaying, etc).

    Most of the examples I’ve found use late binding, which is preferred. In my testing on XP it appeared that the correct library reference, if you prefer to use early binding, is “Microsoft CDO for Windows 2000 Library”.

    It’s important to know that any time you send email you will have to send it through (or out of) some kind of email server. This means you will have to authenticate with that email server and also usually means that you need to send the email out using a “From” email address that exists on that very email server.

    Here’s some code using late binding:

    Const cdoSendUsingPickup = 1
    Const cdoSendUsingPort = 2
    Const cdoAnonymous = 0
    ' Use basic (clear-text) authentication.
    Const cdoBasic = 1
    ' Use NTLM authentication
    Const cdoNTLM = 2 'NTLM
    
    Public Sub SendEmail()
        Dim imsg As Object
        Dim iconf As Object
        Dim flds As Object
        Dim schema As String
    
        Set imsg = CreateObject("CDO.Message")
        Set iconf = CreateObject("CDO.Configuration")
        Set flds = iconf.Fields
    
        ' send one copy with SMTP server (with autentication)
        schema = "http://schemas.microsoft.com/cdo/configuration/"
        flds.Item(schema & "sendusing") = cdoSendUsingPort
        flds.Item(schema & "smtpserver") = "mail.myserver.com"
        flds.Item(schema & "smtpserverport") = 25
        flds.Item(schema & "smtpauthenticate") = cdoBasic
        flds.Item(schema & "sendusername") = "email@email.com"
        flds.Item(schema & "sendpassword") = "password"
        flds.Item(schema & "smtpusessl") = False
        flds.Update
    
        With imsg
            .To = "email@email.com"
            .From = "email@email.com"
            .Subject = "Test Send"
            .HTMLBody = "Test"
            '.Sender = "Sender"
            '.Organization = "My Company"
            '.ReplyTo = "address@mycompany.com"
            Set .Configuration = iconf
            .Send
        End With
    
        Set iconf = Nothing
        Set imsg = Nothing
        Set flds = Nothing
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question has been asked a few other times but I have
I know this question has been asked quite a few times, however, I have
I know this question has been asked here a few times before. But i
I know this kind of question has been asked a few times, but alot
I know this question has been asked lots of times, but I am not
I know this question has been asked few times over SO but none of
I know this question has been asked a zillion times, but I still feel
I know this question has been asked before numorous times but they seem to
I know this question has been asked countless of times. But none of them
Yes, I know this question has been asked a lot of times, but 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.