CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 1999
    Location
    Sweden
    Posts
    15

    Link to local htmfile

    I am generating a mail from an VB-app. In that mail I would like to create a link to a htm-file that I now exists on the recipients client.

    If I state

    "http://c:/MyFolder/whatever.htm"

    the browser starts to search for the webserver "c"

    "file://c:/MyFolder/whatever.htm"

    starts the filedownload dialog

    Any ideas on how to start the browser with the local htm-file?

    Regards

    Patrik


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Link to local htmfile

    I couldn't reproduce that behavior with file:///c:/...htm
    it worked perfectly well on NT 4, SP5 and IE5.


  3. #3
    Join Date
    Sep 1999
    Location
    Sweden
    Posts
    15

    Re: Link to local htmfile

    I may have been somewhat unclear:

    Using MAPI, this is my code:


    mapMess.Compose
    mapMess.RecipDisplayName = "[email protected]"
    mapMess.RecipAddress = "[email protected]"
    mapMess.AddressResolveUI = true
    mapMess.ResolveName
    mapMess.MsgSubject = "Jelstin for president"
    mapMess.MsgNoteText = "File://C:\Whatever.htm"
    mapMess.Send true




    The mail is OK, except of that the link starts the download-dialog. If I change it to "http" it goes looking on the net.

    And why is it that on some mailservers closing the mail without sending it, generates an error (32001) giving me a chance to determine whether the mail actually was sent or not. On other servers it just continues without error?

    TIA

    //Patrik



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured