FILE smtp.php being changed every time and not working!!

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
lombii
Posts: 2
Joined: Mon Mar 04, 2013 2:21 pm

FILE smtp.php being changed every time and not working!!

Post by lombii »

Script URL: http://www.fswip.qlix.com.br
Version of script: 2.4.2
Hosting company: TOTVS
URL of phpinfo.php: http://www.fswip.qlix.com.br/phpinfo.php
URL of session_test.php: http://www.fswip.qlix.com.br/session_test.php

What terms did you try when SEARCHING for a solution: fsockopen, @//fs*ck*p*n

Write your message below:

I´ve been using Hesk script for 2 months now, but since yesterday my admin setting´s page
is not opening, and the e-mail notifications stopped been sent!

When i try to answer a ticket, i get the following error:

"Parse error: syntax error, unexpected '{' in /www/f/fswip/inc/mail/smtp.php on line 784"


WHEN i open smtp.php, that line is exactly like that, with this strange symbols:

if(($this->connection=($this->timeout ? @//fs*ck*p*n($ip, $this->socks_host_port, $errno, $error, $this->timeout) : @//fs*ck*p*n($ip, $this->socks_host_port, $errno))))

INSTEAD of the correct line, that is:
if(($this->connection=($this->timeout ? @fsockopen($ip, $this->socks_host_port, $errno, $error, $this->timeout) : @fsockopen($ip, $this->socks_host_port, $errno))))


... THEN i upload my smtp.php backup, and after one answer sucefully sent by e-mail, the next try give me the same error again. THIS IS HAPPENING ONLY WITH ALL LINES THAT HAVE THE FUNCTION fsockopen IN IT!!!

Something is chanching ONLY these lines when the e-mail code is executed.


Any ideas on how to solve this, or a alternative ?


Thanks in advance.

Marcelo Lombi
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: FILE smtp.php being changed every time and not working!!

Post by Klemen »

This is not something HESK does.

You will need to talk to your hosting company about this - they seems to have a software running that automatically modifies files with "fsockopen" function inside?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
lombii
Posts: 2
Joined: Mon Mar 04, 2013 2:21 pm

Re: FILE smtp.php being changed every time and not working!!

Post by lombii »

This is exactly what is going on Klemen, thank you.

They are modifying it, to prevent from spammers, only for users
with free subscriptions.

I will change my hosting company.

Do you know any good one, which is free ??
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: FILE smtp.php being changed every time and not working!!

Post by Klemen »

I'm afraid not, I haven't used any free ones for at least 10 years now.

If you are seriously want to do online business you will eventually need to spend a little on a reliable hosting.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply