I found the issue, had to edit /etc/php/8.3/cli/php.ini file, by adding/editing following lines :
[mail function]
; For Win32 only.
; https://php.net/smtp
#SMTP = localhost
SMTP = mysmtpserver.domain
; https://php.net/smtp-port
smtp_port = 25
username = myusername
password = mypassword
sendmail_from = [email protected]
Then a service nginx restart.
I still don’t understand why PHP is able to send mails through mail() function, but WordPress need the php.ini file to be configured…
Anyway, hope this helps !
Related Posts:
- How can I send an email using PHP?
- Setting $_SERVER[‘HTTPS’]=’on’ prevents access to wp-admin
- WordPress refuses to send mail, “…your host may have disabled the mail() function”
- How do I override the Message-ID header of wp_mail function?
- Site Title and Tagline in Theme Options Page
- Jquery no more loading, load-scripts.php not found (404)
- Admin Media grid view images won’t load
- Site Title and Tagline in Pagelines DMS Options Panel
- Best way to create a user programatically
- Should I use wp_mail or PHP’s mail? [duplicate]
- Send PDF link in email based on radio button selection
- WordPress if (is_page) translation on certain page
- Performance issues with large website [closed]
- Trigger Woocommerce New User Email
- Processing a subscription form with POST method?
- Different Webhost and using Google Mail server: Is there a better way than SMTP?
- How to override wp-admin styling
- List User order by ID in Descending order (Backend)
- JQuery not working on WordPress Admin page [closed]
- White Screen of Death – wp-admin
- Attaching a pdf to Contact Form 7 e-mail via functions.php [closed]
- Can’t extend some core classes
- Set a condition based on WooCommerce checkout city field while placing order
- WooCommerce – Email admin with new user details
- Namespace spl_autoload problem in WordPress admin
- Unreadable pagination
- How do you ensure that a user is recognised and available for use only when it is verified through a row in the database called ‘accountVerified’?
- remove wp floating submenu in wp dashboard
- My custom wp-admin php files stopped working
- PHP 8, AJAX mail form to function.php doesn’t work
- Capture User Email Address When Filling Out Form
- Call to undefined function wp() in wp-blog-header.php
- Cannot access wp-admin (wordpress dashboard)
- Cannot access wp-admin/wp-login.php (WordPress backend) anymore, what could be wrong?
- How to make my custom widget appear within WordPress widgets? Plugin development
- Send multiple attachments with wp_mail in PHP
- PHP version problem?
- Programmatically create page when saving custom post type post
- WordPress admin is incredibly slow [closed]
- How to change menu labels
- WordPress admin-ajax.php
- How can I open up my administrative panel to everyone?
- Can I get an email notification when media is uploaded to the media library?
- Woocommerce Email attachments not working – file not being attached
- WordPress ajax-action failing because of newline in response
- Usage of call back function of add_meta_box()
- AJAX wp_insert_user WORKS but responds with “The site is not enabled”
- WordPress wp-admin redirect and exception
- Get user custom field value on function.php
- Override Admin menu icon
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- Pass return-path additional parameter in wp_mail
- I installed WordPress locally now how do I login?
- How to debug failed changes to posts?
- Aspx/Rss feed – failed to open stream: Redirection limit reached
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- Use of antispambot with $curauth->email
- How can I update WordPress plugins or WordPress itself in all server?
- Send an e-mail on address with the link with disliked post
- Search bar for wp menu
- Fatal error login WordPress [duplicate]
- Fatal error: wp-settings.php on line 199
- I want to fusion the product columns in email table order
- Class ‘WP_Privacy_Requests_Table’ not found
- How to separate the taxonomies list from the form so that editing taxonmies is the same as pages and posts?
- How to disable sub menu items from being created?
- Access to “My Site” is missing from the admin bar
- spl_autoload_register is slow for WordPress sites
- Admin backend, show post from a category and exclude the posts from subcategories
- Send email to users when they get new followers
- HELP! Frontend User Profile Edit Won’t Update Email
- Right way to display the_author_meta fields?
- Use page-templates without creating theme
- Get value of submit button in custom post type
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- How can disable wordpress emails notifications?
- Woocommerce custom field on emails outputs ‘Array’
- admin uploads pre_get_posts not working as expected
- Issue with search form admin panel after PHP migration
- Wp_mail doesnt work
- Renaming “Expand Details” within “Add Media”
- Trying send mail from Theme page
- Styling admin page rows in order of importance (checkboxes)
- How to check “From Email” via WordPress before an email is sent
- Adding multiple emails to a
- How can I prevent wordpress from sending emails
- Adding jquery using php function
- How do I change the Go To Categories link in the term_updated_messages
- Why can’t I enter the wordpress admin interface?
- Customize the summary table of an order in the email
- How to change wp-admin and wp-login urls
- Why does WordPress not send the user the email to add a password?
- Add Woocommerce Customers link to custom admin menu
- Why is my custom email notification after purchase not sending?
- Restricting access to a file for everyone except logged in users
- How rename wp-content and wp-admin folders correctly
- How to access admin menu labels and links on front-end?
- I’m unable to remove the code that I used to restrict access to the profile page for subscribers
- How to Customize the Admin Sidebar Menu in WordPress Multisite Network by changing the backend code of the wp-admin code files?
- How can I catch WordPress custom settings page slug has already changed?