# Import emails

**URL:** <https://community.hubspot.com/t/import-emails/18433>\
**Category:** APIs & Integrations\
**Tags:** email, contacts\
**Created:** [January 29, 2020, 10:17am UTC](https://community.hubspot.com/t/import-emails/18433 "2020-01-29T10:17:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hubsp](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hubsp/32/76793_2.png) [@hubsp](https://community.hubspot.com/u/hubsp)\
**Post date:** [January 29, 2020, 10:17am UTC](https://community.hubspot.com/t/import-emails/18433/1 "2020-01-29T10:17:02Z")

</div>

Hi

I’m migrating from SuperOffice to hubspot.

When migrating emails, the “cc” and “bcc” are arrays of what?

Objects like:

{ “[email":"a@b.com](mailto:email%22:%22a@b.com)”}, {}

or strings

“[a@b.com](mailto:a@b.com)”, “[b@b.com](mailto:b@b.com)”

?

Also, are contactIds == contact vid?

 ![Capture.PNG](https://d2qpr2jzcazej7.cloudfront.net/original/2X/5/55751564acfb83a2262a142badf704f9b53487cd.png)

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [January 29, 2020, 10:57am UTC](https://community.hubspot.com/t/import-emails/18433/2 "2020-01-29T10:57:14Z")

</div>

Hi @hubsp

For the CC and BCC values, they are a list of strings and when including a CC or BCC, make sure the emails are being included in the same format as the `to` field:

As an example:

```lia-code-sample
 "to": [
 {
 "email": "contact name <test@test.com>"
 }
 ],

```

Therefore, we’d be looking at the following format:

```auto
 "cc": [
 {
 "email": "contact name <test@test.com>"
 }
 ],

```

You can find examples on structure and how to set this up by looking at our Engagements API, see here: [https://developers.hubspot.com/docs/methods/engagements/create\_engagement](https://developers.hubspot.com/docs/methods/engagements/create_engagement)

Also, to confirm the ContactIds are indeed the Contact VIDs.

I hope this helps!

---

<div class="post-metadata">

**Author:** ![hubsp](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hubsp/32/76793_2.png) [@hubsp](https://community.hubspot.com/u/hubsp)\
**Post date:** [January 29, 2020, 1:21pm UTC](https://community.hubspot.com/t/import-emails/18433/3 "2020-01-29T13:21:41Z")

</div>

How do I set a company’s email contactinfo? Should be a prop something like phone number?

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [January 31, 2020, 9:24am UTC](https://community.hubspot.com/t/import-emails/18433/4 "2020-01-31T09:24:08Z")

</div>

Hey @hubsp

A companies contact info is usually along the lines of the Company Domain and the Phone Number.

When it comes to emails, you can email from a Company Record when a Contact is associated with said company. This is an association that can be easily handled in the UI, take a look here:

> **[Automatically create and associate companies with contacts](https://knowledge.hubspot.com/object-settings/automatically-create-and-associate-companies-with-contacts)**
>
> HubSpot can automatically create companies and associate them with contacts based on their email addresses and company domain name.

If you’re creating contacts via the API, you can manually populate the `associated_company_id` property with the `companyId` of the company record that you want the contact to be associated with.

I hope this helps!
