Admin Email notification

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
toddh
Posts: 5
Joined: Tue Aug 26, 2008 2:14 pm

Admin Email notification

Post by toddh »

Script URL: Hesk
Version of script:2.1
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I have searched are read several posts on this but have not been able to resolve.

When a new ticket is submitted, the customer email receives notification that their ticket has been received. The admin never receives notification, the customer and admin emails are all within the same domain. It appears the php mail function is working but the admin notification for some reason does not. Has anyone resolved this?

Thanks
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If the customer receives it but the admin not (both addresses with the same domain), there are three possible causes:

1. admin e-mail is mistyped
2. admin doesn't have "Notify me of new tickets and replies" selected in the Profile
3. a SPAM filter is blocking the mail
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
toddh
Posts: 5
Joined: Tue Aug 26, 2008 2:14 pm

Post by toddh »

Wouldn't the spam filter block both emails? the admin email is not mis-typed and the receive notifications box is checked also.

Thanks
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I guess it usually would, but the admin gets slightly different e-mail. Have you tried addign the e-mail set as "Noreply e-mail" in the settings to your SPAM filter whitelist?

I just don't see any other possible reason why the customer/user would receive the mail and the admin not if both are on the same domain.
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
toddh
Posts: 5
Joined: Tue Aug 26, 2008 2:14 pm

Post by toddh »

I tried it with a no-reply and still did not work. I use this internally for my customer service reps to send issues to my depatment. our emails are all on the same domain. As a temp work around I added more email fields in the submit ticket, and extended the ammount of charecters. So when one of my CSR's opens a new ticket my whole department if their email is entered now gets the same email as my CSR's do when they open a new ticket. Not a admin notification per say but it works. It is strange I moved one to a different category today and got a notification. It is just strange the the admin notify is not working when the submit ticket works for the person opening it and when replys are submitted any email on the ticket gets the notifications just not admins. Could it be my ISP's php version? or a sql issue?
demonic69
Posts: 2
Joined: Tue May 11, 2010 12:44 pm

Post by demonic69 »

I've just solved this issue on my hesk server.
I think it's related to the $email field on the admin e-mail code.
I added a new variable called $adminto and set it to my e-mail.
Then I changed $email in the admin string to $adminto and it works a treat. This is in submit_ticket and reply_ticket. Now I just need to setup an SMTP alias or group and I'm sorted.

Code: Select all

/* Send e-mail to staff */
	$email=implode(',',$admins);
	$headers = "From: $hesk_settings[noreply_mail]\n";
	$headers.= "Reply-to: $hesk_settings[noreply_mail]\n";
	$headers.= "Return-Path: $hesk_settings[webmaster_mail]\n";
	$headers.= "Content-type: text/plain; charset=".$hesklang['ENCODING'];
	@mail($adminto,$hesklang['new_ticket_submitted'],$msg,$headers);
Instead of

Code: Select all

@mail($email,$hesklang['new_ticket_submitted'],$msg,$headers);
lynncap
Posts: 8
Joined: Mon Jun 07, 2010 10:41 pm

Post by lynncap »

update: this is working fine for me now in version 2.2
toddh
Posts: 5
Joined: Tue Aug 26, 2008 2:14 pm

Post by toddh »

Did you add your email in the line code? if so where I am a little confused
Post Reply