Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Could not find the Sender's mailbox.(CDO Library for exchange)

Could not find the Sender's mailbox.(CDO Library for exchange)

Scheduled Pinned Locked Moved C#
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nitin1981
    wrote on last edited by
    #1

    Hi All! I'm using "Microsoft CDO For Exchange 2000 Library" along with Microsoft ActiveX Data Objects 2.5 Library to send mails using Exchange server. I've tried running the code with all possible ammendments but to no avail. I always get the "Could not find the Sender's mailbox" error.My code is given below.

    CDO.Message iMsg = new CDO.Message();
    CDO.Configuration iConf = new CDO.Configuration();
    ADODB.Fields Flds = null;

     try
     {
    
         Flds = iConf.Fields;
         Flds\["http://schemas.microsoft.com/cdo/configuration/sendusing"\].Value  = 3;
         Flds\["http://schemas.microsoft.com/cdo/configuration/smtpserver"\].Value  = "<220.220.220.91>";
         Flds\["http://schemas.microsoft.com/cdo/configuration/sendusername"\].Value = "Nitin.Vij";  //Nitin.Vij
         Flds\["http://schemas.microsoft.com/cdo/configuration/sendpassword"\].Value  = "common";
         Flds\["http://schemas.microsoft.com/cdo/configuration/smtpserverport"\].Value = 25;
         Flds\["http://schemas.microsoft.com/cdo/configuration/MailboxURL"\].Value = "http//Exchange/Exchange/Nitin.Vij/Inbox"; 
         Flds.Update();
         iMsg.Configuration = iConf;
         iMsg.MimeFormatted = false;
         iMsg.AutoGenerateTextBody = false;
         iMsg.To = "Nitin.Vij@Domain.com";    
         iMsg.Subject = "Test mail from Nitin";
         iMsg.Sender = "Nitin.Vij@Domain.com";               
         iMsg.TextBody = "Test";
         //iMsg.From = "Nitin.Vij@Domain.com";                  
          iMsg.Send();
          Console.ReadLine();
     }
     catch(Exception ex)
     {
            Console.WriteLine(ex);
     }
    

    Any help is highly appreciated.

    Don't Quit

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups