-
Notifications
You must be signed in to change notification settings - Fork 414
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
Mailpit not getting emails on automatic addition of PHP 8.4.5 #1092
Comments
If I look at the log file in the mailpit folder, I see this: |
@dbarproductions: Thank to your support Laragon is getting better.
To test: create a test.php with this content:
Open Laragon terminal and run:
To ensure PHP version, type:
|
OK... so I created the test file in the root of one of my wordpress project directories. When I run it from the browser, I don't get an email. If I open terminal, change to that directory, and run it, then I get the email in mailpit. Note that the sendmail path IS correct for my current install, which was over the top of Laragon 7. This is basically the same php.ini section that I have for PHP 8.4.2, which works fine. It just doesn't work with PHP 8.4.5 for some reason. I did notice that the PHP 8.4.5 version that was installed seems to be the NTS version, whereas my other versions don't have the NTS in the file names or after the version number that shows at the top of Laragon. Here is the current hosts file that I tested with this morning after deleting the old entry for mailpit: Local - Start::1 sherrard-racks.local #Local Site Local - End127.0.0.1 demo.test #laragon magic! It's got some old entries from when I was trying out Local, but I don't think that will affect anything. |
Just installed Laragon 8 in a fresh directory. Made sure to kill the old mailpit.exe process from the task manager first (it never gets shut down unless you manually end it). I didn't touch anything from the default install. Waited for Laragon 8 to do the automatic update to PHP 8.4.5, and then did a quick add of a WordPress project, and installed one of my plugins that has a simple email function for emailing users. No luck. First, I didn't get the usual email when a new WordPress site is created after setup. And then my test email never came through either. Note, that this is the default entry created for the 8.4.5 php.ini file when it installs automatically (I did NOT change anything): And I still got the same 2 errors in the mailpit.log file, I'm assuming the first from the email when a new site is set up, and the second from my test email. Note that WordPress thinks the email has been sent as the wp_mail function in WordPress is not returning false (I have success/error messages in my plugin depending on what wp_mail returns). |
@dbarproductions : There are 2 points:
From the you can test with TS version. You can add a new PHP version using Menu > Tools > Quick add:
|
I didn't see any way to add a new PHP version via the Tools > Quick add. But, I downloaded the TS version of PHP 8.4.5, and laragon added the mailpit path when I switched to it, and I can verify that mailpit now receives emails from WordPress and the browser. Not sure why the NTS version doesn't work, but since my older PHP versions are also TS, I'll just stick to installing manually as new versions become available. |
I bought the "lifetime" license for version 7, and am happy to support your great work!
I was excited about the automatic addition of new PHP versions in version 8 which I installed yesterday. However, I can't get Mailpit to catch any emails from my WordPress sites/projects with PHP 8.4.5 which was automatically installed shortly after I launched Laragon 8. This was installed over my version of Laragon 7. If I switch back to PHP 8.4.2, it works fine. I tried copying the same mail settings from the 8.4.2 php.ini file to the 8.4.5 php.ini file, but still no luck. So, right now I have to use 8.4.2 for testing of any emails in the plugins I'm working on.
The text was updated successfully, but these errors were encountered: