• Learn how AI and automation actually work in your Help Desk. Ask our experts how to improve team speed and customer happiness! AMA Nov 17-21.

    Ask us anything

APIs & Integrations

gil123
Member

sending emails with file attachment

hello! I was looking around for a solution using the HubSpot node library to send automated emails and attach files but I couldn't find anything.

I need to send a different file for each user, without making those files with public access.

what are our options?

thank you 🙂  

0 Upvotes
3 Replies 3
Jnix284
HubSpot Employee
HubSpot Employee

sending emails with file attachment

Hi @gil123 the easiest workaround to do this would be to create a custom property using the file field type. Then you could populate the file per user and access this property via the email using personalization token to provide the URL for the file.

 

Jnix284_0-1696184195322.png

 


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon
0 Upvotes
gil123
Member

sending emails with file attachment

hey, thanks for the replay @Jnix284 

I am not sure this workaround fits my use case. I'll try to elaborate - 

the file I want to send is dynamic, and on-demand, for example, when a user wants to get an email with an invoice for a purchased product - this request creates the invoice behind the scenes and then sends it to the user.

everything is done with code in the backend

0 Upvotes
Jnix284
HubSpot Employee
HubSpot Employee

sending emails with file attachment

@gil123 when the invoice is created and the URL is generated on the backend, could you use the API to populate this value? 

 

It would also need to trigger a workflow to send an automated email, but it does sound like it could be done, just not as an attachment.

 


replies and solutions prior to May 2025 were as a member of the community and are not an official response as an employee of HubSpot


Jennifer Nixon