Page 1 of 1

no tickets from empty mails

Posted: Mon Dec 30, 2013 1:51 pm
by mdiehl
Script URL: http://www.esd1.de/hesk
Version of script: 2.5.2
Hosting company: own server
URL of phpinfo.php: http://www.esd1.de/test.php
URL of session_test.php: http://www.esd1.de/session_test.php
What terms did you try when SEARCHING for a solution: empty mail body;mail body;empty

Write your message below:
Hello Klemen,
I hope oyu had a merry xmas and wish you the best for 2014.
Can you please tell me if this is an error or a feature?
When I send an email with an empty body,l HESK will not create a ticket.

Some of my customers are just filling out the subject of an email and send the mail with no further text.
I found out, that under these conditions, HESK will not create a ticket. Can that be changed?

Regards
Matthias

Re: no tickets from empty mails

Posted: Mon Dec 30, 2013 9:10 pm
by Klemen
Thank you for the wishes!

Yes, that is by design. You can accept emails with no message by changing this code in "inc/pipe_functions.inc.php" from

Code: Select all

	// Message missing? We require it!
	if ( ! $tmpvar['message'])
	{
		return hesk_cleanExit();
	}
to

Code: Select all

	// Message missing? We require it!
	if ( ! $tmpvar['message'])
	{
		$tmpvar['message'] = '(no message)';
	}

Re: no tickets from empty mails

Posted: Mon Jan 06, 2014 9:11 am
by mdiehl
Works perfect!
Thank you very much