none
Microsoft.Exchange.WebServices.Data.ServiceResponseException: 'The SMTP address has no mailbox associated with it.' RRS feed

  • Question

  • I am trying to send an appointment and i get the above error message :

    ExchangeService service = new Microsoft.Exchange.WebServices.Data.ExchangeService(ExchangeVersion.Exchange2010_SP2);
     
    service.Credentials = new WebCredentials("XXXXX", "XXXXX", "XXXXX");
    
    service.Url = new Uri("https://mail.xxxxx.com/ews/exchange.asmx");
    
    System.Net.ServicePointManager.ServerCertificateValidationCallback = (senderX, certificate, chain, sslPolicyErrors) => { return true; };
    
                Microsoft.Exchange.WebServices.Data.Appointment appointment = new Microsoft.Exchange.WebServices.Data.Appointment(service)
                {
                    Subject = "xxxxxx",
                    Body = "xxxxxxxxx",
                    Start = StartTime,
                    End = EndTime,
                    Location = Location,
    
                };
    appointment.RequiredAttendees.Add(user.EmailAddress);
    appointment.Save(SendInvitationsMode.SendOnlyToAll); // Fail with expection : Microsoft.Exchange.WebServices.Data.ServiceResponseException: 'The SMTP address has no mailbox associated with it.'


    Wednesday, February 13, 2019 9:03 AM

All replies

  • From the error it sounds like you have issue with the the credentials your using either it doesn't have a Mailbox assigned to them or its disable, I'd suggest you test those credentials out and see if you can access the Mailbox correctly using the EWSeditor https://blogs.msdn.microsoft.com/webdav_101/2018/05/10/ewseditor-1-20-released/

    Cheers
    Glen

    Thursday, February 14, 2019 12:08 AM