Custom SMTP with HostGator Not sending emails

If you configure a custom SMTP and your hosting privider is HostGator, the emails are not sent out. I've tried this with a local nodemailer from another project and faced the same issue. After digging around the internet I found out it's a common issue with hostgator filtering out emails sent problematically with nodejs. To go around it, the community in Stackoverflow advises adding a "name" property to the createTransport() function as in the screenshot below Is this a know issue or is there a workaround in Novu?
No description
13 Replies
Pawan Jain
Pawan Jain9mo ago
@dentricedev I think we can add one optional property name in custom smtp provider
Linear
Linear9mo ago
Issue NV-2934 created.
NV-2934 - add optional field "name" in custom smtp provider
Few email hosting providers like "HostGator" requires name field with nodemailer transporter method
Status
Triage
Novu
dentricedev
dentricedev9mo ago
From what I've experimented, using EMAIL_HOST in the name field works well
No description
Novu_Bot
Novu_Bot9mo ago
@dentricedev, you just advanced to level 1!
Pawan Jain
Pawan Jain9mo ago
@dentricedev would you be open for quick PR?
dentricedev
dentricedev9mo ago
Yes. But i cant find the issue on GitHub
Pawan Jain
Pawan Jain9mo ago
Can you please test for few other smtp providers with similar name configuration?
dentricedev
dentricedev9mo ago
Let me test that with ionos and give you feedback right now
Pawan Jain
Pawan Jain9mo ago
GitHub
[NV-2936] [NV-2934] add optional field "name" in custom smtp provid...
Few email hosting providers like "HostGator" requires name field with nodemailer transporter method From SyncLinear.com | NV-2934 NV-2936
dentricedev
dentricedev9mo ago
Done the test and email sending is okay with a different provider and having name property with email_host value @Pawan Jain Would you advice i create an addional config field on the custom smtp configurations or re-use the EMAIL_HOST from the provided Host?
Pawan Jain
Pawan Jain9mo ago
We can reuse email host value
dentricedev
dentricedev9mo ago
Okay. Let me create a PR
dentricedev
dentricedev9mo ago
GitHub
add "name" property in nodemailer smtpTransportOptions to support h...
What change does this PR introduce? This change is to add a "name" property to nodemailer's SMTPTransport options. The added "name" property reuses the "config.host&quo...