N
Novu15mo ago
dentricedev

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 Jain14mo ago
@dentricedev I think we can add one optional property name in custom smtp provider
Linear
Linear14mo 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
dentricedevOP14mo ago
From what I've experimented, using EMAIL_HOST in the name field works well
No description
Novu_Bot
Novu_Bot14mo ago
@dentricedev, you just advanced to level 1!
Pawan Jain
Pawan Jain14mo ago
@dentricedev would you be open for quick PR?
dentricedev
dentricedevOP14mo ago
Yes. But i cant find the issue on GitHub
Pawan Jain
Pawan Jain14mo ago
Can you please test for few other smtp providers with similar name configuration?
dentricedev
dentricedevOP14mo ago
Let me test that with ionos and give you feedback right now
Pawan Jain
Pawan Jain14mo 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
dentricedevOP14mo 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 Jain14mo ago
We can reuse email host value
dentricedev
dentricedevOP14mo ago
Okay. Let me create a PR
dentricedev
dentricedevOP14mo 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...
Want results from more Discord servers?
Add your server