locked
Problem With Outlook RRS feed

  • Question

  • User-1693568672 posted

    Hi all

     

    I am Facing a Problem With Outlook.

    I have a Web application,where in i want to acces, particular User`s Outlook Mail.I have the Email Address and Passoword

    and i am providing it as Shown Below.

    But my Problem is,it is accessing my default local Oulook,and importing the Outlook mails.

    How do i solve it?Please Help.

     

    Here is my code

      Dim Attachment As Outlook.Attachment

     Dim objOutlook As Outlook._Application
            objOutlook = New Outlook.Application


            Dim ologin As Outlook.AddressList


            Dim oNameSpace As Outlook._NameSpace = objOutlook.GetNamespace("MAPI")
            oNameSpace.Session.Logon("doc_sys@calyxindia.com", "doc", False, True)

     Dim oOutboxFolder As Outlook.MAPIFolder = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderOutbox)
            '
            Dim SecurityManager As System.Security.SecurityManager
            SecurityManager.SecurityEnabled = False
            SecurityManager.CheckExecutionRights = False
            '
            Dim objNS As Outlook._NameSpace = objOutlook.Session
            'INBOX
            Dim objInbox As Outlook.MAPIFolder = _
                objNS.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox)

     

    Please Tell me,where i am going Wrong!! 

     

     

     

     

    Friday, July 4, 2008 2:14 AM

All replies

  • User243792943 posted

    Hi VBindu

    for this you should mention smtp or pop3 mail server name from which that mail account access its mails..

    for ex: if i had a mail id like this   "abc@xyz.com"

    then

    Friday, July 4, 2008 8:56 AM
  • User243792943 posted

    Hi VBindu

    for this you should mention smtp or pop3 mail server name from which that mail account access its mails..

    for ex: if i had a mail id like this   "abc@xyz.com"

    then

    my smtp account will be "mail.xyz.com"

     

     

    Friday, July 4, 2008 8:56 AM