mahtab2003 / Xera

Now Introducing a new and easy way to manage your clients and MyOwnFreeHost hosting accounts.
https://xera.eu.org/
GNU General Public License v2.0
47 stars 39 forks source link

SMTP not working #129

Closed GGLVXD closed 2 months ago

GGLVXD commented 3 months ago

SMTP doesnt seem to work anymore. My config seems fine.

RaannaKasturi commented 3 months ago

Yes. SMTP fails no matter which server do we use.. I was working perfectly until tge latest release. After that, it started to having issues

betasio commented 3 months ago

well yeah smtp doesn't work but what i did to fix that was revert the smtp function to 1.2.8 and use the fix which was for it then i finally managed to fix it

RaannaKasturi commented 3 months ago

well yeah smtp doesn't work but what i did to fix that was revert the smtp function to 1.2.8 and use the fix which was for it then i finally managed to fix it

I'm not good with PHP, I'm a python developer shifting to JS. So, can you explain, what actually needs to be reverted back..?

GGLVXD commented 3 months ago

well yeah smtp doesn't work but what i did to fix that was revert the smtp function to 1.2.8 and use the fix which was for it then i finally managed to fix it

I'm not good with PHP, I'm a python developer shifting to JS. So, can you explain, what actually needs to be reverted back..?

Revert this commit

betasio commented 3 months ago

well what i did was go to app/models/mailer.php replace the whole code with the code of xera version 1.2.8

and go to app/config/email.php and add

$config['smtp_crypto'] = 'tls';

then go to system/libraries/email.php

in line 180 replace

public $newline = "\n";

with

public $newline = "\r\n";

and thats how i managed to fix the issue i got it working

santydesignscr commented 3 months ago

Hello, sorry for being inactive, currently Xera is under a complete core review and migration to Codeigniter 4 so there will not be updates for now, about SMTP change the new line character to \r\n, TLS crypto is set automatically based on API settings

RaannaKasturi commented 3 months ago

Thankyou so much. It worked