# E-mail notification

**URL:** <https://community.shotgridsoftware.com/t/e-mail-notification/14996>\
**Category:** Pipeline Integrations\
**Tags:** fptr-tk, python-api, fptr-webapp\
**Created:** [March 21, 2022, 12:11pm UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996 "2022-03-21T12:11:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dillip](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dillip](https://community.shotgridsoftware.com/u/dillip)\
**Post date:** [March 21, 2022, 12:11pm UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996/1 "2022-03-21T12:11:03Z")

</div>

When a published files,. How to get notification in mail team leader wise. I need coding wise can you help please.

---

<div class="post-metadata">

**Author:** ![dillip](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dillip](https://community.shotgridsoftware.com/u/dillip)\
**Post date:** [March 21, 2022, 5:25pm UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996/2 "2022-03-21T17:25:55Z")

</div>

Hii guy’s I’m waiting for your reply. Please help

---

<div class="post-metadata">

**Author:** ![Halil](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/halil/32/4697_2.png) [@Halil](https://community.shotgridsoftware.com/u/Halil)\
**Post date:** [March 21, 2022, 10:58pm UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996/3 "2022-03-21T22:58:21Z")

</div>

Hey @dillip

> [@SG email - How to CC users on a task and receive email in SG Inbox](https://community.shotgridsoftware.com/t/sg-email-how-to-cc-users-on-a-task-and-receive-email-in-sg-inbox/8288/2):
>
> Hi @Shervinion Thanks for writing in and posting your question, we’ll be happy to help out here. So, the CC field actually is only used for legacy email notifications. If you have someone in the CC field and you have the below email setting checked, then those users will receive email updates on those tasks (but only via email) This functionality was in place BEFORE we introduced the Shotgun [Inbox & Following Features](https://support.shotgunsoftware.com/hc/en-us/articles/219031268-Inbox-and-following). in Shotgun 5.0. With the newer Inbox & Following fu…

Check out this other post on how to _CC_ a specific person to a Task or have them _Follow_ a Task to receive notifications. Any Versions or PublishedFiles then linked to those Tasks should trigger a notification.

For _Followed_ **Tasks** make sure to select:

> Email me whenever there’s an update to something I’m following.

For _CC’d_ **Tasks** make sure to select:

> Email me about **Tasks** that I’m involved in (those that I’m assigned to or CC’d on).  
> Email me whenever a new **Version** is created on something that I am CC’d on.

---

<div class="post-metadata">

**Author:** ![dillip](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dillip](https://community.shotgridsoftware.com/u/dillip)\
**Post date:** [March 22, 2022, 12:27am UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996/4 "2022-03-22T00:27:45Z")

</div>

How to write coding wise. I try to add my publish file.

---

<div class="post-metadata">

**Author:** ![Halil](https://sea1.discourse-cdn.com/shotgunsoftware/user_avatar/community.shotgridsoftware.com/halil/32/4697_2.png) [@Halil](https://community.shotgridsoftware.com/u/Halil)\
**Post date:** [March 22, 2022, 7:02am UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996/5 "2022-03-22T07:02:27Z")

</div>

The only way to provide any notification or communication via code is by creating a `Note` entity and linking this to your PublishedFile. This still requires Account Settings changes for the recipient to enable an email notification however, specifically:

> Email me whenever I receive a note.  
> Email me about **Notes** that I’m involved in (those that I’ve created or replied to, or where I’m a recipient, except for file attachments).

Check out the following post for a Python API example:

> [@How to add a note to a sequence via python api](https://community.shotgridsoftware.com/t/how-to-add-a-note-to-a-sequence-via-python-api/9476/2):
>
> Hi @thebeardedberry, Check out the shotgun methods page ([http://developer.shotgunsoftware.com/python-api/reference.html#shotgun-methods](http://developer.shotgunsoftware.com/python-api/reference.html#shotgun-methods)) It’s always my first stop for using the Python API. As for your question, I would use a create method to create a note and then add the Sequence into the Links field, here is an example; data = { "project": {"type": "Project", "id": 87}, "note\_links": [{"type": "Sequence", "id": 45}], "subject": "This is the Subject", "content": "This is the …

And for a REST API example:

> [@Creating a new Note to an existing version with REST API](https://community.shotgridsoftware.com/t/creating-a-new-note-to-an-existing-version-with-rest-api/10191/4):
>
> Hi @kkoechley, If you want to create a note, the url is {{host}}/api/v1/entity/notes Body is { "subject": "new comment from API!!!!!", "sg\_status\_list":"opn", "project":{ "type": "Project", "id":142 }, "note\_links": [{"type": "Version", "id":11620}] } Hope it is helpful Loney

---

<div class="post-metadata">

**Author:** ![dillip](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dillip](https://community.shotgridsoftware.com/u/dillip)\
**Post date:** [March 22, 2022, 7:27am UTC](https://community.shotgridsoftware.com/t/e-mail-notification/14996/6 "2022-03-22T07:27:46Z")

</div>

ThanQ you for support
