HESK e-mail piping public BETA (test version)
Moderator: mkoch227
Re: HESK e-mail piping public BETA (test version)
I assume one of your Hesk staff has "support@primarydomain.com" set as their e-mail address and that's why Hesk is sending e-mail to this address? If yes, it's a systematic problem.
The solution would be to use "support@primarydomain.com" as a piping address BUT each staff should have it's own unique (not "support") email address, like "john.doe@primarydomain.com". So when a ticket is created the e-mail notification goes to "john.doe@..." and not "support@...".
The solution would be to use "support@primarydomain.com" as a piping address BUT each staff should have it's own unique (not "support") email address, like "john.doe@primarydomain.com". So when a ticket is created the e-mail notification goes to "john.doe@..." and not "support@...".
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 2
- Joined: Mon May 30, 2011 5:09 pm
Re: HESK e-mail piping public BETA (test version)
Hi Klemen
You are 100% correct - Thank you. It was obvious on reflection, but I had missed it!!
Thank you for your prompt response.
Kevin
You are 100% correct - Thank you. It was obvious on reflection, but I had missed it!!
Thank you for your prompt response.
Kevin
Re: HESK e-mail piping public BETA (test version)
Holla,
I like HESK program.
By evaluating the email piping, I'm using DirectAdmin not Cpanel hence no Advance Options for me to fill-up the pipe to program. Only forwarding to email, What should I do?
Thanks
I like HESK program.
By evaluating the email piping, I'm using DirectAdmin not Cpanel hence no Advance Options for me to fill-up the pipe to program. Only forwarding to email, What should I do?
Thanks
Re: HESK e-mail piping public BETA (test version)
hi,
I tried the piping beta test script and received local deliv failure as well with the following error:
Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...] .... etc
php error_log... empty..
I tried the piping beta test script and received local deliv failure as well with the following error:
Error in argument 1, char 3: option not found
Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>]
php <file> [args...] .... etc
php error_log... empty..
Re: HESK e-mail piping public BETA (test version)
Your PHP installation doesn't seem to be accepting parameters - the script isn't even executing.
It is up to you to propelry configure your PHP setup, I would rcommend trying with a sample script first, like suggested here:
viewtopic.php?f=13&t=3351&start=15#p14463
Once you get the test script working on your server you can move to the Hesk piping script.
It is up to you to propelry configure your PHP setup, I would rcommend trying with a sample script first, like suggested here:
viewtopic.php?f=13&t=3351&start=15#p14463
Once you get the test script working on your server you can move to the Hesk piping script.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: HESK e-mail piping public BETA (test version)
I know, BETA is for testing but at my site I can not use email piping and I don't want to wait. So I have changed the script to use it with a normal pop3 mail account.
The script opens the pop3 mail account and fetch all the mails. Every mail is temporary stored as file and will be parsed with the original functions.
I have made only a small change in email_parser.php.
1. Replace function save_forward_mail($tmpfilepath) with save_forward_pop3_mail($tmpfilepath). Arround line 113.
2. Add new function save_forward_pop3_mail($tmpfilepath);. I did it arround line 340 after the original function save_forward_mail($tmpfilepath).
All you have to do is change pop3 host, username and password for your enviroment. For a release version this should be set with a config file. But this is only Beta and for testing.
Please use a pop3 dummy account for testing, because all fetched mails will be deleted after parsing.
Now open http://yourdomain/hesk/inc/mail/hesk_pipe.php in your Browser. A new ticket for every mail in yout pop3 mailbox should be generated. For easy use just set up a cron job.
Regards,
Mathias
The script opens the pop3 mail account and fetch all the mails. Every mail is temporary stored as file and will be parsed with the original functions.
I have made only a small change in email_parser.php.
1. Replace function save_forward_mail($tmpfilepath) with save_forward_pop3_mail($tmpfilepath). Arround line 113.
Code: Select all
113: //save_forward_mail($tmpfilepath);
113: save_forward_pop3_mail($tmpfilepath);
Code: Select all
function save_forward_pop3_mail($tmpfilepath)
{
$_pop3_host = 'pop3.mail.server';
$_pop3_user = 'user';
$_pop3_pass = 'pass';
$mbox = imap_open("{" . $_pop3_host . ":110/pop3/notls}INBOX", $_pop3_user, $_pop3_pass)
or die("can't connect: " . imap_last_error());
$MC = imap_check($mbox);
$result = imap_fetch_overview($mbox, "1:{$MC->Nmsgs}", 0);
foreach ($result as $msg) {
$email = array();
$raw_email = imap_fetchbody($mbox, $msg->msgno, NULL);
$tmpfp = fopen($tmpfilepath,"w");
fwrite($tmpfp, $raw_email);
fclose($tmpfp);
imap_delete( $mbox, $msg->msgno );
}
imap_expunge($mbox);
imap_close($mbox);
}
Please use a pop3 dummy account for testing, because all fetched mails will be deleted after parsing.
Now open http://yourdomain/hesk/inc/mail/hesk_pipe.php in your Browser. A new ticket for every mail in yout pop3 mailbox should be generated. For easy use just set up a cron job.
Regards,
Mathias
Re: HESK e-mail piping public BETA (test version)
We are testing the helpdesk software and have noticed an issue with the tickets that are being input via email pipeing. it is stripping the carriage returns, "rs", and "ns" from emails. those are just the ones I have noticed. Someone can email in, "This person would like to be contacted by email." and then it strips out the "rs" and says in the ticket "This peon would like to be contacted by email"
While funny as hell on the back end, not so funny when we forget to fix those and reply. Any ideas on this?
I can take screenshots and send them to you if needed. Thanks!
While funny as hell on the back end, not so funny when we forget to fix those and reply. Any ideas on this?
I can take screenshots and send them to you if needed. Thanks!
Re: HESK e-mail piping public BETA (test version)
Nice catch. Could you upload this file and let me know if it fixes the issue for you?
http://www.phpjunkyard.com/extras/email_parser.zip
http://www.phpjunkyard.com/extras/email_parser.zip
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 48
- Joined: Wed Jun 16, 2010 2:52 pm
Re: HESK e-mail piping public BETA (test version)
query about custom fields
I have a custom field on hesk if a customer emails the address and the txt contains the custom field will / can it log a call with that custom field pre filled?
i.e the call has the word PC and my field is fault component and it chooses PC?
I have a custom field on hesk if a customer emails the address and the txt contains the custom field will / can it log a call with that custom field pre filled?
i.e the call has the word PC and my field is fault component and it chooses PC?
Re: HESK e-mail piping public BETA (test version)
I'm afraid there is no way for Hesk to recognize custom fields from email as each user can send the email ina completely different format.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 48
- Joined: Wed Jun 16, 2010 2:52 pm
Re: HESK e-mail piping public BETA (test version)
ok - is it then possible for it still to pipe but for it to auto choose a default field from the custome field such as 'unassigned'
Re: HESK e-mail piping public BETA (test version)
In the hesk_pipe.php you would have to define default values for custom fields. For example just below you would need to paste something like:
For each custom field you use.
Code: Select all
foreach ($hesk_settings['custom_fields'] as $k=>$v)
{
$tmpvar[$k] = '';
}
Code: Select all
$tmpvar['custom1']='Default value';
$tmpvar['custom2']='Unassigned';
$tmpvar['custom3']='12345';
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: HESK e-mail piping public BETA (test version)
Hesk is very good, congratulations. More email piping, even better. I want to know if it is possible to open ticket from the pipe, only specific emails.
I look back! Great job!
I look back! Great job!
Re: HESK e-mail piping public BETA (test version)
Not sure that you mean?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
Re: HESK e-mail piping public BETA (test version)
Sorry my english!Klemen wrote:Not sure that you mean?
English:
It's possible open ticket for pipe, only registered mail? Do not leave any open ticket by email pipe.
Portuguese:
É possível abrir ticket por pipe, somente emails cadastrados? Não deixar qualquer email abrir ticket por pipe.