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?
13 Replies
@dentricedev
I think we can add one optional property
name
in custom smtp providerNV-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
From what I've experimented, using EMAIL_HOST in the name field works well
@dentricedev, you just advanced to level 1!
@dentricedev would you be open for quick PR?
Yes. But i cant find the issue on GitHub
Can you please test for few other smtp providers with similar name configuration?
Let me test that with ionos and give you feedback right now
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
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?
We can reuse email host value
Okay. Let me create a PR
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...