Page 2 of 2

Conditional email notices to admins

Posted: Thu Mar 09, 2006 6:31 pm
by typeguy
Hello,

Something I've thought of is the ability to setup a conditions (i.e., if the ticket priority is 'High') then to send an email to an alternate address for the admin or superivisor (i.e., send a text message, via email, to the admin).

Just a thought.

BTW, this script works great. I'm loving it and I'm actually ready to implement it with all my clients. I'm a one man support company and it's helping me keep track of client problems and issues.

regards,
hf2

Email Not Working?

Posted: Wed Sep 13, 2006 6:52 pm
by Jed
Hey guys I just set up Hesk today in about 2 hours. I must say this was an easy set up and ive been using it as testing before i use it for my company and its great. Only i am having one small problem that im sure there is an easy fix for. My emails are not being sent to teh recipients. Such as when i create a ticket. I am not getting an email confirming my ticket was submited (to the customer posting a ticket), Im not getting a ticket notiification to my employees, and im not getting a reply ticket messesage. So basically its not working at all lol. I entered in my email address during the set up. so i was wondering if i had to add my email server info somewere for it to actualy send and recieve the emails. Can someone tell me how to get this function working please. Thank you in advance.

~Jed

Posted: Thu Sep 14, 2006 12:57 pm
by Klemen
Hello,

Go to search.php , enter search terms "emails not sent" (without quotes), select forum "Hesk - helpdesk software" and what do you know, the answer to your question magically appears :wink:

Email

Posted: Thu Sep 14, 2006 8:12 pm
by Jed
Thanks but that didnt help me. I searched around the forum and i still cannot figure this out. Like I said before none of my emails are being sent. The only place in the code for this script that deals with my email address is in the hesk_settings.inc.php file which looks like this: (somthing@somthing.com isnt whats inputed on my end ;))

/* CONTACTS */
$hesk_settings['support_mail']="somthing@something.com";
$hesk_settings['webmaster_mail']="somthing@somthing.com";
$hesk_settings['noreply_mail']="somthing@somthings.com";

other then that i dont know what else to configure to get hesk to send the emails. I dont think I need Authentication and if i do I have no idea were to find the PHP mail() file. can someone tell me exactly how to set this email setting up? thanks

you can contact me at scars4u@gmail.com
Thanks again

Posted: Thu Sep 14, 2006 9:29 pm
by Jed
ok well i found my php.ini file on my Ubuntu LAMP server 6.06 which is running the hesk script and under there i found the lines of code containing:
_____________________________________________________________
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =

; Force the addition of the specified parameters to be passed as extra parameters to the sendmail binary. These parameters will always replace the value of the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =

___________________________________________________________
What exactly do i change in this file to make the hesk email function to work. I am in charge of the email server and i know that authentication is off and that it should allow php. The email server is not on the LAMP server so would i need to change its php.ini file? I have no clue what im doing. im a newbie and im just peicing this together as i go.

Posted: Fri Sep 15, 2006 9:31 am
by Klemen
Hi,

Well I'm gonna repeat what I said few times here on this board (that's why I sent you to read old posts). Hesk uses the standard PHP mail() function so if sending out e-mails doesn't work then something must be wrong with the mail() function in general.

Unfortunately I am not a "server guy" so I don't really know how to help here as I have no experience troubleshooting the mail() command and especially I don't have any experience with Windows servers (and according to your php.ini you are on a Windows server). I suggest you check around other forums to see if you can find someone to help you get your mail() working properly.

One thing that comes to the mind is - you said your mail server is not on the LAMP server? Maybe "SMTP = localhost" needs to be changed to something else then as your mail server is not on "localhost".

Sorry I can't be of more help here, but I really don't have experience in this.

Regards,

Posted: Mon Sep 18, 2006 7:51 pm
by Jed
Thanks. Ill try changing the local host to something else if it dosnt work then ill just play around with it until it does.

Posted: Tue Sep 19, 2006 5:51 am
by Henrie
Hello Jed,

Code: Select all

mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25 
Where SMTP now is localhost it should point to the computer that is the mailserver.
At my home for example it is 192.168.2.10 (even though it is on the same computer as my webserver localhost did not work).
At work we have an exchange server and there if have it set to srv02.domain.nl (which is the server that runs Windows Small Business Server 2003).

Maybe this is of some help to you.

EDIT 2006-09-20: I had faulty mentioned \\srv02, this should be srv02.domain.nl

Greetings,
Henrie

Posted: Tue Sep 19, 2006 5:08 pm
by Jed
Thank you Henrie, Ill give that a try.

Right now im trying to install sendmail on my linux machine and its not going so well :( but hopefully ill get this working by the end of the day.

Posted: Tue Sep 19, 2006 8:44 pm
by Jed
Hey Klemen have you set this up with postfix?

Posted: Wed Sep 20, 2006 8:34 am
by Klemen
Nope, my server has Sendmail. But shouldn't matter what mail software oyu use as long as you configure PHP properly so that mail() function works.