Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6844527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:23:22+00:00 2026-05-27T00:23:22+00:00

Anyone here who has experience with using Exchange webservice. I am trying to send

  • 0

Anyone here who has experience with using Exchange webservice.

I am trying to send an e-mail to myself using the webservice. This e-mail has another address as Sender, but it keeps taking my recipients e-mail address as Sender instead :s

This is my code:

    Dim Message As MessageType = New MessageType()
    Message.Subject = txt
    Message.Body = New BodyType()
    Message.Body.Value = ActiesOverzicht

    Message.Sender = New SingleRecipientType
    Message.Sender.Item = New EmailAddressType
    Message.Sender.Item.EmailAddress = SenderEmail

    Message.ToRecipients = New EmailAddressType(0) {}
    Message.ToRecipients(0) = New EmailAddressType()
    Message.ToRecipients(0).EmailAddress = RecipientsEmail

    Message.Sensitivity = SensitivityChoicesType.Normal

this message goes into a list and is send with the following Code:

    Public Sub SendMailToOperator(messageList As List(Of MessageType), esb As ExchangeServiceBinding)
    ' Create the CreateItem request.
    Dim createEmailRequest As New CreateItemType()

    ' Specifiy how the e-mail will be handled.
    createEmailRequest.MessageDisposition = MessageDispositionType.SendOnly
    createEmailRequest.MessageDispositionSpecified = True

    ' Create the array of items.
    createEmailRequest.Items = New NonEmptyArrayOfAllItemsType()
    ' Add the message to the array of items to be created.
    createEmailRequest.Items.Items = messageList.ToArray()
    'createEmailRequest.Items.Items(0) = Message

        ' Send a CreateItem request and get the CreateItem 
        ' response.
        Dim createItemResponse As CreateItemResponseType = esb.CreateItem(createEmailRequest)
     End Sub

Does anyone have any Idea on how to solve this problem? Or what causes it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T00:23:22+00:00Added an answer on May 27, 2026 at 12:23 am

    AFAIK Exchange will normally always set the sender to the identity of the person logged in.

    There are several ways around this, the easiest one being not using Exchange. Just send mail trough ‘normal’ SMTP.

    If you have to use Exchange you should log in as the sender you’re trying to use, or set up the permissions for the account you are trying to use as sender. The sender you’re using should allow the account you use to login to send mail on it’s behalf. The permissions can be changed through outlook.

    There might also be a way to relax this restriction on the Exchange server, but I’m not an Exchange admin so I don’t know how.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone here has any experience on how to send HTML emails that renders
This should be a very simple question for anyone who has some experience in
I was wondering if anyone here had some experience writing this type of script
I wonder if anyone here has any experience with mercurial running on Ubuntu? I've
Anyone here have any experience with using a CMS system for content and populating
Does anyone here use VB.NET and have a strong preference for or against using
Has anyone here ever used C++'s placement new? If so, what for? It looks
Has anyone here created a Flash site or application that is ADA (Section 508)
I'm wondering whether anyone here has ever used a skip list . It looks
Has anyone done this or attempted to do this for a preexisting project? It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.