We can't reset the password on login (if the password was forgotten), without getting this error.
How can we fix this? Any suggestions?
Thank you so much =)
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Forgotten password page error
-
- Posts: 26
- Joined: Mon Jul 06, 2020 4:23 pm
- Has thanked: 3 times
Forgotten password page error
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4428
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 475 times
- Contact:
Re: Forgotten password page error
Hi,
"Forgot password" uses PHP’s built-in `mail()` function to send email notifications. The `mail()` function relies on the server’s underlying mail system, such as `sendmail` or `postfix` on Linux, or SMTP settings configured in `php.ini` on Windows. It takes the recipient, subject, message body, and optional headers as input, and returns `true` if the message was accepted for delivery. However, this does not guarantee the email was actually delivered—it only confirms that it was handed off to the mail system.
If the `mail()` function fails (returns `false`), first ensure that error reporting is enabled in PHP so you can catch any syntax or configuration issues. Confirm that a valid `From` header is included, as many mail servers will reject emails without one. Check the server’s mail logs (e.g., `/var/log/mail.log` or `/var/log/maillog`) to see if the message was blocked or dropped. Also verify that the server has a working mail agent and that DNS records like SPF and DKIM are properly configured for the sender domain. For more robust error handling and delivery tracking, consider using a library like PHPMailer or routing email through a trusted SMTP provider.
"Forgot password" uses PHP’s built-in `mail()` function to send email notifications. The `mail()` function relies on the server’s underlying mail system, such as `sendmail` or `postfix` on Linux, or SMTP settings configured in `php.ini` on Windows. It takes the recipient, subject, message body, and optional headers as input, and returns `true` if the message was accepted for delivery. However, this does not guarantee the email was actually delivered—it only confirms that it was handed off to the mail system.
If the `mail()` function fails (returns `false`), first ensure that error reporting is enabled in PHP so you can catch any syntax or configuration issues. Confirm that a valid `From` header is included, as many mail servers will reject emails without one. Check the server’s mail logs (e.g., `/var/log/mail.log` or `/var/log/maillog`) to see if the message was blocked or dropped. Also verify that the server has a working mail agent and that DNS records like SPF and DKIM are properly configured for the sender domain. For more robust error handling and delivery tracking, consider using a library like PHPMailer or routing email through a trusted SMTP provider.