Page 1 of 1

Ticket Notification Format

Posted: Tue Oct 20, 2015 8:18 pm
by FormidableMulk
I upgraded from v2.42 to v2.5 this morning...

HTML E-mails are enabled. Tickets submitted via customer form kick off HTML notification e-mails; tickets POP-scraped generate plain text notification e-mails.

I haven't had time to dig into what's causing this one yet...

Re: Ticket Notification Format

Posted: Tue Oct 20, 2015 10:34 pm
by FormidableMulk
I've started digging into inc/email_functions.inc.php. It looks like the hesk_mail() has very different behavior for mail(), SMTP, and Mailgun delivery.

This is probably worth mentioning: I've only tested SMTP delivery.

That said, from what I can tell, no value is being passed to hesk_mail() in the $modsForHesk_settings['html_emails'] parameter when triggered via POP3 mail ticket scrape.

Re: Ticket Notification Format

Posted: Thu Oct 22, 2015 2:30 pm
by FormidableMulk
$modsForHesk_settings['html_emails'] had no value because it didn't exist. I added the following snippet to hesk_email2ticket() in inc/pipe_functions.inc.php, just after the global declaration.

Code: Select all

$modsForHesk_settings = mfh_getSettings();
Now when the notification functions are called, the modsForHesk_settings array gets passed along and, if set, HTML notifications are delivered.

Re: Ticket Notification Format

Posted: Fri Oct 23, 2015 11:36 am
by mkoch227
This should be fixed in 2.5.1. Let me know if you still have issues.