pkesseli's avatar
pkesseli
Brass Contributor
May 21, 2021
Status:
New

Changing the from/sender address in a Compose Scenario

Hi everyone!

Based on a response from the Outlook Add-ins Team - MSFT:
https://stackoverflow.com/a/67630922/833060

Our customers use different shared email addresses to communicate with different clients. With the current outlook-web-addins API we can warn them if they use an unusual sender address for a given message body or recipient address. But we cannot automatically suggest the most likely sender address when they reply to an email. For the recipients, e.g. the `to` address, we can just invoke:

 

Office.context.mailbox.item.to.setAsync(
[
  {
    displayName: "Allie Bellew",
    emailAddress: "allieb@contoso.com"
  }
], result => console.log(result));

 

But the same is not possible for the `From` field. Since in Outlook Web they can pretty much set the sender to an arbitrary value, so long as the mail server will accept it, we propose to expose this functionality in the API as well.

Thank you for your response and all the best,
Pascal

5 Comments

  • tblectordk's avatar
    tblectordk
    Copper Contributor

    Same here - we also need this feature added - sending from shared mailboxes is vital for many organizations.

  • dabrain555's avatar
    dabrain555
    Copper Contributor

    We are also currently developing an Outlook Web Addin, used by organization users that needs to reply from shared department mailboxes instead of personal accounts. Replying to emails regarding different case types in our product, the addin must be able to set the proper mailbox address in the 'From' field, so the users does not have to do it manually. 

    This action is possible in the COM addin and as our users are replying to a lot of emails daily, this situation occurs frequently every day. Thus, it is an important feature.

     

    We sincerely hope 'Office.From' will be extended with a setAsync() method in the near future !

  • jok's avatar
    jok
    Copper Contributor

    I currently develop an add-on of which the whole functionality of depends on being able to set this. Without this feature, I can't develop that add-in and can't remove the frustration the colleagues have being forced to set the sender on mac by hand all the time.