Disable email sending to all but admin - how to?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
phpuser
Posts: 1
Joined: Wed Oct 28, 2009 1:45 pm

Disable email sending to all but admin - how to?

Post by phpuser »

Write your message below:

Quick
question, to prevent my competitors from spamming people, I'd like to
disable the ability to send outgoing emails to everyone except me; is
there a way to do this? eg what to #-comment out in the phps to make
it so that yes they still have to enter their email address and
ticket, but the script doesn't ever send any outgoing emails, except
to me, the admin?

For example, one of my industry competitors has their email list. To violate CAN-SPAM and harm my business, they could enter one of those emails into my hesk and post something.... as hesk would send an email to that email address, even though the real owner of it didn't enter that email. (I'm in a competitive industry and they Do blackhat stuff like that).

So I'd like to completely disable the help desk from sending any emails to anyone but me, the admin... I still need hesk to capture the email address and save the ticket as normal, I just don't want outbound emails sent to anyone but me (I'll email them manually myself w/responses).

thanks...
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hello,

Just to be clear sending SPAM from Hesk isn't really possible. One could do what you say but then again one could do that in any script or even easier write two lines of code and have a custom script that would send out SPAM to a large list from showing as it is from your e-mail instantly without having to bother to submit a ticket for each one.

I strongly recommend against disabling sending e-mails because:
1. many people might forget or loose their tracking ID
2. people will not be notified when you reply to their ticket

With that said, you could modify these two files to remove sending e-mails to customers:

In file "submit_ticket.php" delete

Code: Select all

@mail($email,$hesklang['ticket_received'],$msg,$headers);
In file "admin/admin_reply_ticket.php" delete

Code: Select all

@mail($orig_email,$hesklang['new_reply_staff'],$msg,$headers);
BUT if you decide to do that you should also let people know they need to write down their tracking ID. You can do that by modifying file "language/en/text.php", change

Code: Select all

'Your ticket has been successfully submitted! Ticket ID';
to something like

Code: Select all

'Your ticket has been successfully submitted! <span style="color:red;font-weight:bold">Please write down your ticket ID number or you will not be able to view the ticket!</span> Ticket ID';
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