Password reset emails not being received

I have enabled $enable_password_reset in settings.php on our own install of emoncms but I don't receive any emails. Suspecting a firewall or server configuration issue I built a basic PHP script thus:

mail($to, "Testing email", "Testing email", $from);

...but it worked fine, so I know the box is capable of sending out.

I fiddled with the $smtp_email_settings block to remove first username and password and then port too but this didn't make any difference. Looking at email.php it mentions SwiftMailer - is this library included or do I need to separately download and install it?

Chris.

 

ChrisValentine's picture

Re: Password reset emails not being received

OK, so it looks like the SwiftMail library is required. Found on github, downloaded and installed in Lib, configured location in email.php - found out the port number needed to be 25 not 465. Password reminders (well, resets) now working.

Chris.

ChrisValentine's picture

Re: Password reset emails not being received

It wasn't as simple as that.

Beire's picture

Re: Password reset emails not being received

Do you see any errors in apache's error.log?
Or emoncms.log.

Mailing was a real pain in the ass here too, to get going.

ChrisValentine's picture

Re: Password reset emails not being received

I didn't see anything in the Apache error log until I started adding my own error_log("not working"); type lines to the code. But if I'd have looked in emoncms.log there were messages in there.

Chris.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.