Results 1 to 3 of 3

Thread: Outlook With VB6

  1. #1

    Thread Starter
    Addicted Member Rohan_Powle's Avatar
    Join Date
    Mar 2000
    Location
    Mumbai,maharashtra.India
    Posts
    173

    Post

    Hi There,
    I have Developed a VBA to send mails using Outlook.Mailitem Object...
    It Works Fine ... if i start Microsoft Excgange Server first & activate my
    acc..& then Start my VBA for sending mails..
    it works fine. But if i directly start my VBA for mailing it givies a error
    "No Transfer Provider Specified"..
    Can Anyone plzz help me & tell me the way i can activate my mail acc
    programmatically from my VBA itself & not by starting Microsoft Exchange
    First...

    Regards Rohan

  2. #2
    Lively Member chrisgaddy's Avatar
    Join Date
    Mar 2001
    Location
    Olive Branch, MS
    Posts
    71
    As far as I know, you will have to put the Microsoft MAPI Session control on your form. If the database will be distributed, you will have to register it on the user's machine also. To use it, place the control on the form. Whenever you need to login to exchange, use this code:
    BTW, I called the control acSession...

    With acSession
    .UserName = "YourName"
    .Password = "YourPassword"
    .SignOn
    End With

  3. #3
    New Member
    Join Date
    Mar 2001
    Location
    Portsmouth, UK
    Posts
    8
    If you are using Microsoft Exchange Server to host your mail box, then it will have to be running in order for you to access it.
    If you created a local mail box, i.e. a pst file, then you would be able to access it with out Exchange, and send them via your local internet/intranet connection.

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