WaspW
Wasp11mo ago
4YZ

Email not sending on production

Hey, I'm using the OpenSaaS template and Wasp 0.15, running on a self-hosted Coolify instance. When I sign up on my dev machine, I receive a verification email just fine. When I sign up in production (with the same env vars), no email is sent. I don't see anything in the logs regarding emails. Only on the client, there's a 10:52AM DBG Request Handled Method=POST Path=/auth/email/signup line.
I've tried with both SMTP and Mailgun providers. When I look at the SMTP provider and Mailgun logs it looks as though they haven't received the request.
I ran a test script from the wasp server docker container to see if it could be a networking issue, but there I do receive the email just fine. Test script:
import { emailSender } from "wasp/server/email";

await emailSender.send({
  from: {
    name: "name",
    email: "hello@example.com",
  },
  to: "hello@example.com",
  subject: "Saying hello",
  text: "Hello world",
  html: "Hello <strong>world</strong>",
});

Any thoughts on what I'm missing?
Was this page helpful?