Sender names not showing up with mailgun as a provider
I have a mailgun email provider and I set my Sender name to “Commenda” (the name of my company).
I’m sending emails from an address “operations@commenda.io”
Expected: the sender name should be set to Commenda - the from header should say
Commenda <operations@commenda.io>
Actual behavior: the sender name is not set and the From header is just
operations@commenda.io.
So the name displayed in the user’s email inbox is “operations”, which is not ideal for obvious reasons
14 Replies
Hi @yaacov, I'm an AI assistant for Novu. While a team member reviews this question, I'll see if I can find relevant sources for your question.
-----------------------------
While I generate an answer, here are some sources that might be helpful:
* Mailgun
* Email providers
* NextJS
* Monorepo Structure
-----------------------------
Answer
The issue you're experiencing with the sender name not appearing as expected when using Mailgun with Novu could be related to how the Mailgun provider is configured in Novu. Specifically, the problem might stem from the integration setup between Novu and Mailgun, where certain parameters such as the
from_name
might not be correctly passed or utilized.
When setting up Mailgun as a provider in Novu, it's crucial to ensure that your API key, domain name, and other required information are correctly added to the Mailgun integration on the Novu platform. This setup involves specifying the From email address
and potentially the Sender's name
during the Mailgun integration process with Novu (1) .
However, based on your description, it seems like the expected sender name setup isn't reflected in the emails sent. This might indicate a discrepancy in how the sender's name is being handled or passed in the email sending process. Although the documentation provided doesn't directly address the issue of the sender's name not appearing as expected, it's essential to review the configuration and ensure that all necessary fields are correctly filled during the setup.
Given the current information and sources available, I recommend double-checking the Mailgun integration settings on the Novu platform to ensure that the sender name and other relevant fields are correctly configured. If the configuration appears correct and the issue persists, it might be beneficial to review any recent changes to the Mailgun or Novu documentation or reach out for support from their respective teams for more detailed guidance specifically related to the sender name configuration.There are three places to set sendername
1. In provider integration form
2. In email step editor
3. using overrides during workflow trigger
Which one you have set?
![No description](https://cdn.answeroverflow.com/1239156539646804040/8CCDFAFF-6FC8-4063-8665-DC587B932E7B.png)
In provider integration form
But I tried overriding it in step editor and it didn’t work there either
Actually, I think we may be overriding the override in code
@yaacov, you just advanced to level 1!
remove sender name from step editor
and update integration form value with
Commenda <operations@commenda.io>
Please retry after this change
Actually, I think we may be overriding the override in codeIf you are overriding
senderName
field using overrides field, make sure you are using Commenda <operations@commenda.io>
value there as wellYup, making that change now
I think another dev on my team misunderstood the ‘from’ field in the payload
That sets the from header directly, right?
wait let me check
I may be wrong
Thanks!
My mistake!! Yes, you need to change from value with this
Commenda <operations@commenda.io>
in above form and overrideWhat’s the hierarchy here? If we set ‘from’ from the API, will that be prioritized over the dashboard setting?
setting ‘Commenda <operations@commenda.io>’ In the “From email address” on the integration drawer works!
Thank you
The UI is quite unclear here, you should fix this at some point
I appreciate the quick support though
Why isn’t the “sender name” field here doing anything?
@yaacov
Thanks for the feedback
Strangely, we are not using
senderName
for mailgun
https://github.com/novuhq/novu/blob/next/packages/providers/src/lib/mailgun/mailgun.provider.ts#L43
Could you please create a github issue for this?
It's a small fix. I would love to take community help in this
!issueLet's open an issue over GitHub! That's the link you should follow: https://github.com/novuhq/novu/issues/new/choose