Include CC Email address in notification mail sent to users

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
amedina
Posts: 1
Joined: Mon Nov 12, 2012 2:18 pm

Include CC Email address in notification mail sent to users

Post by amedina »

Script URL:
Version of script:
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: Hi, We're starting to use HESK in out IT Department, currently we use and email address where users sent the support request. This email is a mailgroup in which all of us are included. We'd like that when a user create a support request via Hesk, the notification that the system sent to the user could be sent to the IT Department groupmail too, just like adding a "cc" to the mail notification. How can we do that?

Thanks and best regards!
Alberto Medina
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Include CC Email address in notification mail sent to us

Post by Klemen »

This would require modifying email sending functions and is unfortunately out of the scope of my support.
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
kistao
Posts: 1
Joined: Tue Nov 20, 2012 2:27 pm

Re: Include CC Email address in notification mail sent to us

Post by kistao »

My company is also using Hesk for our help desk software. I've looked at the email function. Is this the snipet of code where the 'cc' should go:
/* Generate message or add email to the list of recepients */
if ($admin['language'] == $current_language)
{
/* We already have the message, just add email to the recipients list */
$recipients[] = $admin['email'];
}
else
{
/* Send email messages in previous languages (if required) */
if ($current_language != 'NONE')
{
/* Send e-mail to staff */
hesk_mail(implode(',',$recipients), $subject, $message );

/* Reset list of email addresses */
$recipients = array();
We want to send the info to only two other people in our organization...is there a way to plugin another array or just plug in the two email addresses?
Thanks
kistao
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Include CC Email address in notification mail sent to us

Post by Klemen »

Try adding this above hesk_mail line:

Code: Select all

$recipients[]='one@domain.com';
$recipients[]='two@domain.com';
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