Password Reset e-mail not using mail settings


#1

There was a bug fix in 1.4.7, which seems to have found its way back in to the 1.5.4 code. When you confgure IP to use SMTP for e-mail, the “I forgot my password” link does not honour these settings. Instead, it defaults to using PHPmail. The result of this is an attempt to send an e-mail from “system@sitedomain.tld”, instead of the address configured in the SMTP settings.

The 1.4.7 bugfix was resolved in https://development.invoiceplane.com/browse/IP-401

Is there an easy workaround? I’ve had to add “system@sitedomain.tld” as a mail alias temporarily, however I would like to remove this as soon as practicable as “system@” tends to be a go-to alias for spammers :slight_smile:


Make the mail_from configurable
#2

I’ve created a “critical” bug ticket for this, as it wll prevent users in some environments from utilising the “lost password” functionality.

https://development.invoiceplane.com/browse/IP-596


#3

I’m a bit lost because I’ve added some logs message and for me the password reset function goes to the if-loop :

if (mailer_configured()) { }

And when I display the

get_setting('email_send_method')

I have “smtp” in my log.

(I couldn’t finish the test as I got a smtp error which is also log … but I change it to PHPMail or SendMail I got the error you describe but not any SMTP errors as I could have when SMTP is setup in IP)