Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

203
Views
How to get rid off from angle brackets in ethernet outlook if I am adding emails by API call?

I have question. After adding my add-in to online outlook what auto adds emails from sidebar. Emails have extra naming in their names. For example: email: example@example.com
in cc field will be - example@example.com<example@example.com>

Question is why outlook added this extra <example@example.com> stuff to email? How to remove them if I am adding them by api calls?

emails with extra less than symbol

I am using office.app.js in my add-in just in case

function _getMailItem() {
            return Office.context.mailbox.item;
 }

function addRecipientPortion(listName, emails) {
            var deferred = $q.defer();
            var mailItem = _getMailItem();
            var recipientList = mailItem[listName];

            recipientList.addAsync(emails.slice(0, 100), function (asyncResult) {
                if (asyncResult.error) {
                    deferred.reject(asyncResult.error);
                } else {
                    deferred.resolve();
                }
            })

            return deferred.promise;
        }

emails acording documentation must be array of string but if they are it rises error.

if emails are in this format it works fine but it did not work in desktop outlook

email format what works aka array of objects

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Long story short you can not. The bug was that in Desktop outlook need to add extra prm(displayName) to the object what contain email (before that it contained only emailAddress prm).

BE AWARE!
If emailAddress and displayName have same values then in online outlook the email will be in triangle brackets. Like so - my@email.com<my@email.com> emails in online outlook with triangle brackets

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!