Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Mail server sending mails to actual inboxes #1210

Closed
slobich opened this issue Dec 20, 2024 · 6 comments
Closed

[Bug]: Mail server sending mails to actual inboxes #1210

slobich opened this issue Dec 20, 2024 · 6 comments
Labels

Comments

@slobich
Copy link

slobich commented Dec 20, 2024

Platform

macOS

Operating system version

macOS Ventura 13.6.9

System architecture

Intel (x86)

Herd Version

1.13.0 (Build: 37)

PHP Version

No response

Bug description

I have a Pro license for Herd and installed on a Windows and Mac platform and all of a sudden sites in the Mac version can send emails that get delivered to actual inboxes. So it's not in the Mail log in Herd but they actually get sent by my computer to an email inbox. For example WordPress installed locally can send emails to my actual mail inbox. To be honest I don't know if this an issue with Herd or not but all of the sites are inside Herd. Hope you can help.

Steps to reproduce

No response

Relevant log output

No response

@sschlein
Copy link
Member

How does your email configuration in your WordPress site look like? It should be like this to get the emails in Herd:

https://herd.laravel.com/docs/macos/guides/wordpress#test-emails

Otherwise WordPress just sends emails via it's default configuration and that could be to a real mail server. You may want to be careful when using this configuration excatly as in the guide because this will also try to use Herd when your site is deployed to a remote server, so this would need the related configuration there.

@sschlein sschlein added needs more information Further information is requested and removed windows labels Dec 20, 2024
@slobich
Copy link
Author

slobich commented Dec 20, 2024

@sschlein Thank you for your help.

I know about that config and when I add that the emails get delivered to Herd but what confuses me is that on Windows this doesn't happen. I don't have the mentioned config on Windows in any of the sites and no emails get sent to actual inboxes. Also in previous versions of Herd on my Mac this didn't happen. I don't know the exact version this started happening.

@github-actions github-actions bot removed the needs more information Further information is requested label Dec 20, 2024
@mpociot
Copy link
Member

mpociot commented Jan 6, 2025

@slobich this is very weird.
We haven't auto-configured anything in previous versions of Herd/on Windows so this must be something related to your specific applications.

@mpociot mpociot closed this as completed Jan 6, 2025
@slobich
Copy link
Author

slobich commented Jan 17, 2025

@mpociot Sry for reopening this but I just had two colleagues that work in the same company as me report the same issue. Both are on Macs and both have Herd pro and both have the same issue where when installing WordPress inside a Herd website the emails get delivered to actual inboxes. So I don't think it's just my setup. I can check with them and give you more info on their local OS and other details if you think it would help.

@sschlein
Copy link
Member

So how does your WordPress actually send emails? We're no WordPress experts and most other systems have environment based files for these types of configs where you can add a server with username and password.

@slobich
Copy link
Author

slobich commented Jan 22, 2025

@sschlein WordPress has wp_mail() function for sending emails. The function uses PHPMailer to send emails.

The strange thing with this is that Heard doesn't send emails on Windows just on Mac. If it helps I can get info on all 3 Macs that I know have the same issue.

Thank you for your help with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants