everytime when the system sends a email this error comes :
Unable to email via Sendmail Unable to send mail: mail(): Failed to connect to mailserver at "localhost" port 587, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
finndetlev
The error is pretty clear. It cannot connect to an smtp server at localhost on port 587. You will need to double check your smtp configurations in the system and potentially reconfigure.
Cheers.
The error still appears, yet the email is being sent successfully, which I find confusing. We are using an internal Exchange server.
Probably still sending out due to PHPMail/sendmail as we use that as a backup if SMTP fails.
KevinTheJedi how can i fix this ?
Are you self hosting, or using a Vm hosting / web host? Some VM hosting companies and web hosts do not allow sending email this way to prevent spammers.
ntozier self hosting with Apache and MySql
Check your server logs and mail server logs for a reason for the connection failure. Could be blocked port, dns issues, etc. try to telnet to the host and port from the server CLI.
Other than looking at the logs... (which will likely point you in the right direction) I would make sure that Sendmail is installed, and running. 🙂 If its installed and running take a look at the sendmail config.
ntozier how can i install it on windows ?
finndetlev Document is located at: https://docs.osticket.com/en/latest/Getting%20Started/Installation.html Since you are using the In-House exchange, you may just use the Legacy user/password
Just update the Hostname and Protocol: