Hi all
I'm wondering if anyone can help, we use a older very modified (so cant update) version which works fine apart from its sending emails via PHP and now the emails are getting marked as spam. So as previously we want to use Office 365 email. We have switched on Office 365 legacy SMTP Auth and all seems to be fine with that, and when we enter the SMTP details on the email template page they all check out and its saved correctly, however on sending an emails, we get incorrect credentials in the logs and it still sends via PHP. Upon looking in the DB the USERPASS is blank and not being populated, similar to this issue here:
https://forum.osticket.com/d/86340-smtp-email-configuration-issue-not-saving-password-field
I tried to generate the password using SQL query, but unsure what the string is, just to see if it works this way.
I've tried the following:
update ost_email set userpass = MD5(CONCAT(MD5('MYEMAILPASSWORD'), 'MYSECRETSALT')) where email_id='1';
update ost_email set userpass = MD5('MYEMAILPASSWORD') where email_id='1';
It generates and populates the password, but still the same error so obviously not generating the right hash.
If anyone cant help with generating the right hash that would be ace, as this is a temp fix obvioulsy, but even better if anyone can point as to why this password would not be save and just being blanked, all other items save ok in that table.
Many Thanks
TAP