Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

justl00king's avatar

Emails are coming from the wrong domain -- every other time

I have 2 sites set up on laravel forge, abc.com and xyz.com. Both are real estate sites and have their own databases. Users can save a search and the sites will send the user an email if a property that matches their search is added to the site. I have a test search saved on each one of the domains with 2 different email addresses. When an email is sent out, I'm getting the email except either except every other email is sending from the wrong domain or I'll get duplicate emails at one email address and nothing at the other.

I know this is confusing, any ideas as to what could be causing this to happen?

0 likes
5 replies
justl00king's avatar

Thanks for your reply @martinbean. I wasn't sure what to include, let me know what if any other information I can give. Emails sent using queues and pass through sendgrid. Here's screenshot.

justl00king's avatar

@Nash, both sites use the same repository. I guess I could put queue names in the .env file, not sure if that's frowned upon.

justl00king's avatar

I went ahead and changed the queue name for one of the sites and discovered that the actual problem is something completely different. I will start a new thread so they are not mixed up. Thanks so much for help @martinbean & @Nash

Please or to participate in this conversation.