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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:31:40+00:00 2026-05-26T04:31:40+00:00

Im currently using Classic ASP and developing my website with it. I want to

  • 0

Im currently using Classic ASP and developing my website with it.

I want to allow user to send a file regarding his/her comments to me.

I am able to do so only if i have the file under my IIS server directory.
If its on the local like desktop or my other folders, it does not.

I have read up on asp email attachment and the errors and i realised that i need to upload it first? (correct me if im wrong).

Below are my codes. I have changed the details such like my server name and stuff with fake details.

Set cdoConfig = CreateObject("CDO.Configuration")  

    With cdoConfig.Fields  
        .Item(cdoSendUsingMethod) = cdoSendUsingPort
        .Item(cdoSMTPServer) = "my server name"  
        .Update  
    End With 

    Set cdoMessage = CreateObject("CDO.Message")
    strMsg ="Name: " & Request.Form("cName") & "<br>" & "Contact: " & Request.Form("cContactNumber") & "<br>" & "Email: " & Request.Form("cEmail") & "<br>" &   "Remarks: " & Request.Form("cRemarks")

    With cdoMessage 
        Set .Configuration = cdoConfig
        .From = "email"
        .To = "receiver email"
        .Cc = Request.Form("cEmail")
        .Subject = "[subject]"

        .Addattachment "\\IPAdress\file path\sampleFile.txt"
        .HTMLBody = strMsg
        .Fields.update
        .Send 
    End With 

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing

Can anyone help me? Or is there another way to go round this?

Your help will be appreciated!
Thank you in advance!!

  • 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-26T04:31:40+00:00Added an answer on May 26, 2026 at 4:31 am

    Yes this is true all files should be under your IIS server directory and you should have all rights on this folder/files..

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

Sidebar

Related Questions

I'm using ImageMagickObject COM+ in Classic ASP. I am trying to convert an SVG-file
I have a classic ASP application currently secured using ASP.NET Forms Authentication running on
Im currently using vs2008 with asp.net mvc framework for web development. Im missing a
I have a classic ASP application that I've been constantly trying to modularize. Currently,
We're currently trying to integrate existing classic ASP pages into our new method of
Whoever wrote the navigation for the site I’m currently working on (classic asp) points
I currently have an ASP Classic script that runs every 15 minutes (via scheduled
Using classic asp, I am trying to query a SQL Server database like so:
Presently, I am working on a project using classic ASP. My development machine is
I am in need of using Classic ASP with Access. This is a requirement

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.