# Email subject prefix

**URL:** <https://we.hypha.app/t/email-subject-prefix/325>\
**Category:** ☎️ Support\
**Created:** [March 10, 2022, 11:45am UTC](https://we.hypha.app/t/email-subject-prefix/325 "2022-03-10T11:45:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![allan](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@allan](https://we.hypha.app/u/allan)\
**Post date:** [March 10, 2022, 11:45am UTC](https://we.hypha.app/t/email-subject-prefix/325/1 "2022-03-10T11:45:22Z")

</div>

Hi.

I see in the code there is the possibility of setting a prefix for notification subject emails.  
Does this work already?  
I set the env variable but cant see the prefix in notification emails.

I cant see it impremented in the code nor could I find any issues/PRs on github.  
Any advice @frjo ?

thanks allan

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/we.hypha.app/frjo/32/5_2.png) [@frjo](https://we.hypha.app/u/frjo)\
**Post date:** [March 10, 2022, 12:09pm UTC](https://we.hypha.app/t/email-subject-prefix/325/2 "2022-03-10T12:09:13Z")

</div>

`EMAIL_SUBJECT_PREFIX` is a standard Django setting.

[https://docs.djangoproject.com/en/4.0/ref/settings#email-subject-prefix](https://docs.djangoproject.com/en/4.0/ref/settings#email-subject-prefix)

It is not used anywhere in Hypha. It was added early on and just stuck around.

I think we could remove it.

Instead we can add a `ORG_EMAIL_SUBJECT_PREFIX` that is used for all e-mails Hypha sends.

It could get inserted here:

> <https://github.com/HyphaApp/hypha/blob/6554683d5756d1932418282ea2d225aa22c9b5ce/hypha/apply/activity/tasks.py#L10-L20>

A default value of `'[Hypha] '` or maybe even better `f'[{settings.ORG_SHORT_NAME}] '`.

---

<div class="post-metadata">

**Author:** ![allan](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@allan](https://we.hypha.app/u/allan)\
**Post date:** [March 10, 2022, 1:09pm UTC](https://we.hypha.app/t/email-subject-prefix/325/3 "2022-03-10T13:09:08Z")

</div>

brilliant! thanks very much @frjo

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/we.hypha.app/frjo/32/5_2.png) [@frjo](https://we.hypha.app/u/frjo)\
**Post date:** [March 11, 2022, 7:07am UTC](https://we.hypha.app/t/email-subject-prefix/325/4 "2022-03-11T07:07:38Z")

</div>

> <https://github.com/HyphaApp/hypha/issues/2775>
>
> The existing setting \`EMAIL\_SUBJECT\_PREFIX\` is a standard Django setting.
> 
> htt…ps://docs.djangoproject.com/en/4.0/ref/settings#email-subject-prefix
> 
> It is not used anywhere in Hypha. It was added early on and just stuck around. I think we could remove it since Hypha do not send out any mails that use it. Please confirm that first.
> 
> Instead we can add a \`ORG\_EMAIL\_SUBJECT\_PREFIX\` that is used for all e-mails Hypha sends.
> 
> It could get inserted here:
> 
> https://github.com/HyphaApp/hypha/blob/6554683d5756d1932418282ea2d225aa22c9b5ce/hypha/apply/activity/tasks.py#L10-L20
> 
> A default value of \`'\[Hypha\] '\` or maybe even better \`f'\[{settings.ORG\_SHORT\_NAME}\] '\`.
> 
> Setting it as empty string should mimic how it works today, no prefix at all.
