Create email for existing or new created contact

Hello,

Can someone help with creating email entries for contact?

There is a website with a custom form. When user submits form:

1) new contact is created in hubspot contact list (using data that user placed in the fields).

2) User get an email. Email is sent using mandrill (with custom designed template)

Is there a way to add this email sending in a hubspot contact history? I mean when separate contact will be opened in hubspot contact list there will be a record like this - Screenshot by Lightshot among other contact activity

Is there some kind of API for this? I will be thankful for any information

Hi @petryshakm,

I want to tag in @IsaacTakushi and @cbarley who may have more insight on the API part of this question.

Thanks,
Jenny

hi @petryshakm , it sounds like you’d want to be using the Engagements API and create an engagement with a TYPE of EMAIL. It will appear in the HubSpot UI as if somebody had emailed that contact directly from within the Contacts tool itself. This should help accomplish your goal.

@cbarleythank you a lot! It was the thing I searched for!

@cbarley

I have one more question, still can’t find the way to solve this. When I create EMAIL engagement entity it works fine and I can see it in contact activity.

But it’s type is ‘Logged email’ (Screenshot by Lightshot). Is there a way to make it like ‘Email’ with ability to reply?

Thank you

Hi @petryshakm , there’s no way to actually send off the email from the Engagements API or allow it to be replied to. That API should be used to simply log past emails exchanged.

@cbarleyI understood, thank you!

Hi @cbarley

I have one more question regarding ability to reply. Is there a way to send the emails using api and be able to reply? Maybe some other api type or something like that.

I already searched in developers documentantion, there is Email API but I cant find a way to achieve what I need using it.

Thank you a lot!

Hi @petryshakm , no, that’s not possible. The engagements API is meant to log previous interactions. you can email the contact directly from the contact record and they will be able to reply

@cbarley

Hello again!
Sorry for bothering you so much. I have one last question. When user send message from website using the form he gots an email. And this email is logged into his contact history using api.

But what if user will reply on email, is there a way to track this reply and place into contact history? Not with ability to reply through hubspot but just like a record about his answer and message that was sent
Thank you!

Hi @petryshakm , yes, once somebody from within HubSpot sends an email to that contact, they can then respond, and their replies will be logged to HubSpot automatically without the need for the API