Sending e-mails in Glitch

Hi, I’m my project I want to be-able to send a “Thank you for creating an account” email. How do I achieve this

I want the email to be noreply@aklox.glitch.me. Any ideas?? I tried running a STMP server but that failed to listen on a port.

1 Like

Hello, currently Glitch only allows port 3000, which your project can use as a web server, however you can use node-mailer to send mails from a google mail account, zoho mail account, or outlook mail account. It can also be configured to send mails from any other service too.

We recommend you use a third-party mail provider. Mailgun for example has a generous free plan.

3 Likes

I just starting working on a little project here to send e-mails. :grinning:

I recommend nodemailer and sendgrid. It wasn’t horrible to set up, and there is a lot of documentation.

Nodemailer: https://www.npmjs.com/package/nodemailer
SendGrid: https://sendgrid.com/

2 Likes

Thanks for the info about Glitch only allowing port 3000.

1 Like

For anyone else coming here because they just want to send a darn email already:

sendgrid.com has a free plan with 100 emails per day “forever” that’s ridiculously easy to sign up for. It’s the “Trial 40k” plan (the default). Create an API key under Settings → API Keys in the sidebar (you can also just follow the setup guide for Web APIs), and plug it into the .env of this handy Glitch project you can remix: https://glitch.com/edit/#!/sendgrid-quickstart

Thanks for pointing me in the right direction folks.

2 Likes

Good day everyone,please I have issues sending mail through glitch server, I am using third party smtp service provider called brevo, and I’m using it together with nodemailer, my code is written in node, I noticed when I try to send a mail it doesn’t go through, and I Don’t get any response, seem like it’s blocked or something because, I added log statements and the log doesn’t get to the part which mail is been sent, I have try using sendGrid too I experienced the same thing, I also noticed same issue is happening when I host my backend code on render, I also try to change my port from 25 to 587 still the same thing, but if I use my local server to send it it will go through at once please, what is going on