Sending Mail directly from replit

Hello, lately ive been exploring some replit templates, I’ve saw a template named ghost, it allows you to create a blog website.
When i tried it, it was able to send me Signups emails for new members directly from the repl
image
Now, i didn’t really understand how it worked, since replit isn’t allowing to send mail directly without an external STMP server like Gmail’s etc.
Any help?

1 Like

Hi @OfirApps there are quite a few repls called ghost out there so I wasn’t able to find the one you mentioned however, if you are using Python, this might be a good place to start:

https://replit.com/@JakobNacanaynay/Mail-Bot?v=1#main.py

The thing is that if you do that, you have to have a Gmail account, and the email would come from theaccount@gmail.com.

What @OfirApps is asking is how it is possible that the email shows that it was sent from noreply@ghost.ofirapps.repl.co which is a Replit domain.

1 Like

Thanks @LuisAFK I’ll be happy to dig deeper if @OfirApps can share a link to the code he is currently investigating.

1 Like

https://replit.com/@ConnorBrewster/Ghost?v=1
The ghost template in replit’s library
@IanAtReplit

2 Likes

Any updates? @IanAtCSTeach

Hi @OfirApps attempting to connect with the user who created the template. I will reply when I have new info!

Just wanted to add that since this doesn’t seem to be implemented properly, the emails always end up in the spam folder. Because the domain that sends the email is not authorized by Replit or something weird. Someone explained it to me, but I can’t explain it.

The information I’ve gathered, with some help from @louzaoj, is that the email is sent by 65.98.230.35.bc.googleusercontent.com (the IP at the beginning changes), and that’s a VM in Google Compute Engine. But the weird thing is that if you open it up in a new tab and view the certificate, it’s signed by conman.global.replit.com (there was another apart from global, but I forgot what it was).

So are the emails actually sent by Replit, or by Google?

Hi @OfirApps and @LuisAFK

I was just chatting with Connor about this and he mentioned that “…most email providers will probably think its very suspicious since you have to set up some extra stuff like DNS records to make the email more reputable”. The email is being sent by Ghost, via Google, as far as I am aware.

I recommend reading more about Ghost here.

I’ve done this with my Cheese Letter program I made.

I used Nodemailer direct transport to do the trick. It’s not really SMTP nor as secure, but works!

Here’s the Repl if you’re further interested in my approach: Repl

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.