Forgotten password

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
graham
Veteran Member
Posts: 89
Joined: 2020-09-29 12:30

Forgotten password

Post by graham » 2023-06-13 10:29

Hi, my forgotten password feature isn't working. I'm using a Microsoft email for the SMTP. MS say that the device application requires at least TLS 1.2. My server is running TLS 1.3, I checked with Ahmed and he suggested "You could try this: Open the generated "resources/PHPMailer/class.smtp.php" file, find and comment the following lines:

Code: Select all

      if (defined('STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT')) {
            $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT;
            $crypto_method |= STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT;
        }
which I did but it didn't help. I've also tried using a different non-Microsoft smtp provider that works on another app - but again, nothing. When I try to use the forgotten password screen - just a second screen telling 'An email with password reset instructions has been sent to your registered email address ...' but no email arrives. Can anyone throw any light on this? Any help appreciated.
(Ahmed, I thought I'd post it here rather than reply to you so if we find a solution it might help others.)
Thanks, Graham

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: Forgotten password

Post by a.gneady » 2023-06-14 11:11

Hmm ... just a quick thought: If you're hosting your app on Amazon AWS, they automatically block SMTP ports and you have to submit a request to open them: https://repost.aws/knowledge-center/ec2 ... 5-throttle
:idea: AppGini plugins to add more power to your apps:

graham
Veteran Member
Posts: 89
Joined: 2020-09-29 12:30

Re: Forgotten password

Post by graham » 2023-06-15 07:27

No, it's regular shared hosting. I also tried another SMPTP provider and still not working. So it looks like I'll have to talk to Microsoft (last time it wouldn't work was because 2-factor was enabled on the email address, so I disabled it), and put a call into my hosting company too.

graham
Veteran Member
Posts: 89
Joined: 2020-09-29 12:30

Re: Forgotten password

Post by graham » 2023-06-15 21:58

So .. response from my hosts ... "On our shared server we have disabled PHPmailer for the security concerns". So I'm just trying to work out how to get my forgotten password feature working .. this must be a common problem?

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Forgotten password

Post by baudwalker » 2023-06-16 07:47

I was having the same issue. the email could not be received by the replicant, mainly gmail and bigpond , and the sending email received a non-deliverable email alert.

I contacted my hosting provider and they said, "This can be due to the domains SPF record." So they configured an SPF record for the affected domains. and that was that all fixed.

Barry

User avatar
a.gneady
Site Admin
Posts: 1354
Joined: 2012-09-27 14:46
Contact:

Re: Forgotten password

Post by a.gneady » 2023-06-17 10:41

graham wrote:
2023-06-15 21:58
So .. response from my hosts ... "On our shared server we have disabled PHPmailer for the security concerns". So I'm just trying to work out how to get my forgotten password feature working .. this must be a common problem?
Do they offer any alternative for sending mails? Is it specifically PHPMailer that they are blocking, or all SMTP ports in general?
:idea: AppGini plugins to add more power to your apps:

User avatar
baudwalker
Veteran Member
Posts: 188
Joined: 2015-02-03 08:08
Location: Bellingen NSW Australia

Re: Forgotten password

Post by baudwalker » 2023-06-19 04:39

Further to my issue it seemed to be the embedded link. Once I received the email that bounced back, I resent it in plain text and it worked fine.

Barry

Post Reply