Guest Posted April 10, 2006 Share Posted April 10, 2006 you should have a line in the helpdesk_pop3.php where it prints the error for imap_open. echo "[". DATETIME ."] [ERROR] Unable to connect: ". imap_last_error() ."".CRLF; so you could either replace it or add an extra line like echo "[". DATETIME ."] [ERROR] Unable to connect: ". implode(' ### ', imap_errors()) ."".CRLF; and you could also use the imap_alerts function. For the cron job you simply invoke the helpdesk_pop3.php script. Quote Link to comment Share on other sites More sharing options...
needmorebeerformewallaby Posted May 12, 2006 Share Posted May 12, 2006 Does anyone know if there is anyway to get this addon to work without the imap_open file? My provide will not install this in there php :( I have got it to work on my own server but what i am really looking for is another way of getting the email into the sql database without using imap_open. Thanks. Quote Steve Link to comment Share on other sites More sharing options...
paq1200 Posted May 30, 2006 Share Posted May 30, 2006 I can get the emails through mic. outlook but not through admin. when i look at error log i get PHP Fatal error: Call to undefined function: imap_open() in /admin/helpdesk_pop3.php on line 62 line 62 is: if ($conn = imap_open("{".DEFAULT_HELPDESK_MAILSERVER.DEFAULT_HELPDESK_PROTOCOL_SPECIFICATION."}".$mailbox, $emailaddress, $password, $mode)) not sure what to change to get to work. I am trying to use the pop3 addon but no success. Any help will be appreciated Quote Link to comment Share on other sites More sharing options...
Guest Posted May 30, 2006 Share Posted May 30, 2006 ask your host to enable the imap extension first of all. Quote Link to comment Share on other sites More sharing options...
paq1200 Posted June 1, 2006 Share Posted June 1, 2006 While I am waiting on the imap to be enabled I have another question. I have several email accounts set up for different departments and when I click on the "Sync with mail server" it only tries to Sync the default email. How do I sync all the email addresses? Thanks Mike Quote Link to comment Share on other sites More sharing options...
Guest Posted June 19, 2006 Share Posted June 19, 2006 (edited) when i click sync with mail server i get this error: Warning: imap_open(): Couldn't open stream {mail.pcgiant.co.uk} in /hsphere/local/home/pcgiant/pcgiant.co.uk/admin/helpdesk_pop3.php on line 62 [Mon Jun 19 7:49:19 2006 -0500] [ERROR] Unable to connect: TLS/SSL failure for mail.pcgiant.co.uk: SSL negotiation failed Does anyone know how i can fix this error. other than this error this cotribution seems to work but not in admin. Thank in advance kind regards Vickie Edited June 19, 2006 by pcgiant Quote Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2006 Share Posted June 20, 2006 Does no one know what this problem is. why people make contributions with and asume they work when infact they dont this contribution does not even work on a fresh install of oscommerce lain or laim or what ever your name is "you there lad" fix the contribution or remove it. when i click sync with mail server i get this error: Warning: imap_open(): Couldn't open stream {mail.pcgiant.co.uk} in /hsphere/local/home/pcgiant/pcgiant.co.uk/admin/helpdesk_pop3.php on line 62 [Mon Jun 19 7:49:19 2006 -0500] [ERROR] Unable to connect: TLS/SSL failure for mail.pcgiant.co.uk: SSL negotiation failed Does anyone know how i can fix this error. other than this error this cotribution seems to work but not in admin. Thank in advance kind regards Vickie Quote Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2006 Share Posted June 20, 2006 Does no one know what this problem is. why people make contributions with and asume they work when infact they dont this contribution does not even work on a fresh install of oscommerce lain or laim or what ever your name is "you there lad" fix the contribution or remove it. I know for a fact the contribution works. The pain is to configure it and that unfortunately has to do with the mail server and settings and these are different for each case. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2006 Share Posted June 20, 2006 Hi and thank you for your reply thought i was on my own in here how do i find the mail server settings needed to make this contribution work i spent well over 10 hours trying all different ways to get this to work. and still i am not able to get it to work. I did find the setting within my email server to enable the imap and still can not get it to work. our host is ixwebhosting and we are using Apache servers with Unix. I have contacted Ixwebhosting but the customer service and technical are all out of there depth and do not know what settings to use other than the ones i have used. Hope you can help much appreciate your reply Kind Regards Vickie I know for a fact the contribution works. The pain is to configure it and that unfortunately has to do with the mail server and settings and these are different for each case. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 20, 2006 Share Posted June 20, 2006 see my earlier post that it can help you to debug it and configure it. When the imap functions fail they do give detailed info about the error. Just dump the entire error array http://www.oscommerce.com/forums/index.php?s=&...ndpost&p=835769 Quote Link to comment Share on other sites More sharing options...
alba Posted August 5, 2006 Share Posted August 5, 2006 has anyone ever built a front end for this contribution? so customers can login and see tickets and responses? Quote Link to comment Share on other sites More sharing options...
kindrosker Posted April 15, 2009 Share Posted April 15, 2009 fix bug with html emails as you can see this code working only with text emails. To fix html emails open helpdesk_pop3.php and find code $field_body = trim($parts['text'][0]); and replace to if(strlen($parts['html'][0])>0) { $field_body = trim($parts['html'][0]); } else { // get rid of things that will confuse php $field_body = trim($parts['text'][0]); } Quote Link to comment Share on other sites More sharing options...
kindrosker Posted April 15, 2009 Share Posted April 15, 2009 but html email will not have right view so we have to do some changes in helpdesk.php open helpdesk.php and find code: <tr> <td class="smallText"><?php echo nl2br($entry['body']); ?></td> </tr> and replace it to <tr> <td class="smallText"><?php echo (stristr($entry['body'],'<br>') || stristr($entry['body'],'<p>') ? $entry['body']: nl2br($entry['body'])); ?></td> </tr> it means if body has html tags we will not use nl2br functions Quote Link to comment Share on other sites More sharing options...
alba Posted March 3, 2010 Share Posted March 3, 2010 fix bug with html emails as you can see this code working only with text emails. To fix html emails open helpdesk_pop3.php and find code $field_body = trim($parts['text'][0]); and replace to if(strlen($parts['html'][0])>0) { $field_body = trim($parts['html'][0]); } else { // get rid of things that will confuse php $field_body = trim($parts['text'][0]); } Ive tried your mod to the code to allow html email to be put thru into the ticket but it seems to still stript all the ticket out and so the ticket shows up blank in helpdesk.php any ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.