Support

Akeeba Ticket System

#39143 Send ticket directly by email

Posted in ‘Akeeba Ticket System for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.2.x
PHP version
8.x
Akeeba Ticket System version
5.2.7 PRO

Latest post by nicholas on Tuesday, 18 July 2023 00:36 CDT

FrankVo

How can I set ATS to be able to send a ticket by email.

So,, a client can send a question directly by email and make automaticly a ticket.

The trigger-email is in this case i.e. [email protected]

 

How do I config it in ATS?

nicholas
Akeeba Staff
Manager

Yes, of course you can. Documentation: https://www.akeeba.com/documentation/ats-for-joomla/receiving-emails.html

To create tickets by email you need to set the “Create ticket by email” option in the plugin to Yes.

To allow replies to existing tickets by email you need to set the “Reply by email” option in the plugin to Yes.

The options can, of course, be combined.

Please do read the documentation page to understand what are the limitations of creating tickets by email and the setup you need on your end.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

I can see the plugin and I have set it.

But, you mention a cronjob that should be set also.

Can you tell me where and how ? Because I cannot find it in your docs. Your documention could be better if you explain this cronjob also.

nicholas
Akeeba Staff
Manager

Did you maybe miss Chapter 7: Automation and CRON Scripts in the documentation? It is linked to from the page I told you to read:

You will need to create a CRON job, either using the CRON CLI script or the CRON URL.

https://www.akeeba.com/documentation/ats-for-joomla/receiving-emails.html

If you mean something different, can you please specify how chapter 7 doesn't cover you so I have a better idea of what you are looking for?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Thax for your fast replies.

I have set the cronjob tot Joomla CLI (on de server host) and set the Fetch Mail plugin.

The cron is running. But the trigger email to get tickets by email is not working.

If I send a mail, to [email protected], no ticket is made.

See attatchements.

What am I doing wrong ?

nicholas
Akeeba Staff
Manager

You have set the CRON job to run once a day, at 12:00 noon on the server's timezone (not necessarily your timezone).

You should instead use Minute */5 and every other field * which tells the CRON server to run this CRON job every 5'.

Moreover, ask your host how you can see (or receive by email) the output of the CRON job. This would tell you if your configuration is correct. I do not think that your configuration in screenshot #9 is correct. I have never seen an IMAP server using port 21 (port 21 is used by FTP servers). It looks like I am right:

$ nmap -Pn mail.xxxx.nl -p 21
Starting Nmap 7.80 ( https://nmap.org ) at 2023-06-28 15:56 EEST
Nmap scan report for mail.xxxx.nl (185.xxx.xx.xx)
Host is up (0.067s latency).

PORT STATE SERVICE
21/tcp closed ftp

Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds

Most likely you want port 993, the default port for IMAP over SSL/TLS which I see is open on your mailserver.

I have not seen any IMAP server released the last 15 years use TLSv1.0 either. TLSv1.1 or later is more likely to work, unless your host explicitly told you to use TLS 1.0, stressing the 1.0 part.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Of course, the port should be 993 en TLS1.1

Cron is set on 5 minutes and running.

 

But no success, if I send an email to [email protected] it doesn't make a ticket (also not after CRON's 5 minutes)

 

Also, if I reply on a ticket inside component ATS, the replies don't show in de email of the ticket-sender.

 

So, still not very successfully.

nicholas
Akeeba Staff
Manager

Receiving emails: Moreover, ask your host how you can see (or receive by email) the output of the CRON job. This would tell you if your configuration is correct. We really need to see the output.

Sending emails: This is just standard Joomla email sending. Go to your site's Global Configuration and check your email setup there. Make sure your site can send emails. If your site cannot send emails then neither can Akeeba Ticket System (since emails are sent by Joomla itself, not ATS).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Something strange is happening I think.

Look at previous screenshots and these.

- Test-Mailing by Joomla is correct.

- Cron is running correct

- Fetch Mail plugin is corect config but doesn't seems to be triggered.

- replies by ATS comp are landing in de mailbox which is set in the CRON (info@), instead of the mailbox set in Fetch Mail plugin (ticket@).

 

So, strange behavior. I cannot understnad how to get this working. Akeeba is mostly straight forward but now a bit complex, but I need this comp badly.

See screenshots.

FrankVo

Above:

-Mailrouting, when normal ATS forms are used, is now correct.

-But still no success in 'ticket by email'

nicholas
Akeeba Staff
Manager

First, please download and install the latest dev release from https://www.akeeba.com/download/ats-dev/5-2-8-dev202306261101-rev89862f53.html. This addresses an issue with the default category in the mailfetch plugin we just fixed for another client (a very big installation, actually) which I believe might be affecting you.

Now, let's walk this back, staring with the ATS Category you are using. Click on its Ticket Options tab. There is a Category Email. Make sure this is the email you are receiving tickets in.

Also, make sure this is the same category you have used in the plugin's configuration as the Default Category.

Now send an email to that email address. Make sure this email is received by your mail server and also make sure the mail is marked unread and it's in the INBOX (not a subdirectory of it, or your spam). Remember that if the mail is marked read the email fetch plugin won't try to read it. If the mail is not in the INBOX folder the email fetch plugin won't see it.

Let the CRON job run. You will now get a new ticket.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Okay

- I installed the dev version

- category Default is set in Fetch email

- email is set in category Ticket Option tab

- I have send an email to the emailaddress, email comes in INBOX, unread, of that emailbox

- CRON did run

 

No ticket has been made, also no user (?).

 

Only thing I am insecure about is the TLS1.1, could it be that it must be SSL v3 ?? In the mailbox itself it is set as SSL/TLS.

I tried also SSL v3 but no success.

I can give you the login of de admin. We are diehards so we can solve this :-)

nicholas
Akeeba Staff
Manager

No ticket has been made, also no user (?).

The way I read this, you are sending an email from an email address which does not correspond to a user of the site. That's a very crucial detail :)

If this is the case then you are missing another step: enabling guest tickets. Remember that, by default, only registered users on your site who have adequate permissions to post tickets can send emails and have their emails be converted to tickets. Enabling guest tickets allows anyone with any random email address send an email to your ticket system, creating both a user and a ticket at the same time.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

I have done all you suggested in your last reply..

No success. Not with a registered user, neither with a guest.

I think you should take a look in the admin.

nicholas
Akeeba Staff
Manager

I have made the ticket private so only you and me can see the replies here.

I will need a LOT of access to help you, much more than just access to Joomla's backend. Here is what I need to start helping you.

  1. Site Administrator Access
    • URL to your site's administrator login page (e.g. https://www.example.com/administrator/index.php?foobar)
    • Super User username
    • Super User password
    • If you have a password protection before the login page:
      • Admin protection Username
      • Admin protection Password 
  2. FTP / SFTP Access
    • Which one should I use: FTP, FTP over SSL/TLS, SFTP
    • Hostname
    • Port (if other than 21 for FTP or 22 for SFTP)
    • Username
    • Password
    • Directory which corresponds to your site's web root
  3. Email Access (For The Account Receiving Support Requests)
    • IMAP hostname
    • IMAP port
    • IMAP username
    • IMAP password
  4. SSH Access (If Available)
    • SSH Hostname
    • SSH Port
    • SSH Username
    • SSH Password
  5. Hosting Control Panel Access (To Control CRON Jobs)
    • Hosting control panel URL
    • Username
    • Password
    • ** Make sure it does NOT ask for a second authentication factor upon login

I need the site admin access to configure the plugin and view the logs.

I need the FTP/SFTP access in case I need to add extra debugging to the code.

I need the email access so I can a. configure the plugin and b. watch what happens to the mailbox.

I need the SSH access to run the mailfetch. If this is not available I will use the alternate method (URLs) to trigger mailfetch manually.

I need the hosting control panel so I can disable CRON jobs before debugging and re-enable them after I am done. It will also help me understand if the CRON jobs are set up correctly (including the correct PHP version) or not.

You can expect me to start working on it either Sunday (if I have time) or Monday.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Of Course hereby:

 

Admin:

UN= adminxl

PW= Tronicus%%44%%

 

Email:

Server: mail.zxcs.nl (port 993 and 465)

SSL=On

UN= [email protected]

PW= fOHJjWi0

 

CRON job output goes to:

Server: mail.zxcs.nl (port 993 and 465)

SSL=On

UN= [email protected]

PW= TjYqMSao9

 

FTP:

IP= 185.104.29.138

UN= [email protected]

PW= dYORs9HwY

 

DirectAdmin: (SSH is not allowed)

url: https://web0151.zxcs.nl:2222

UN= supportdesk

PW = Petronas%%66%%

nicholas
Akeeba Staff
Manager

Um, Frank? When I tried sending a ticket to [email protected] I got a response from Freshdesk. Here's what I got:

---

Beste Nicholas K. Dionysopoulos,

 

Hiermee bevestigen wij u dat er voor uw verzoek of vraag een ticket is aangemaakt. 

Een medewerker bekijkt uw ticket en reageert persoonlijk naar u.

(binnen de gestelde kantooruren 13.00 -17.00 en 19.00 - 21.00 uur).


Om de status van uw ticket te bekijken of een opmerking te plaatsen, ga dan naar: 
https://webtool4all.freshdesk.com/helpdesk/tickets/1318

CONTROLEER OOK UW SPAMBOX ! (vooral bij hotmail.com en gmail.com mailboxen).


Bedankt voor uw geduld.


Vriendelijke groet,
Webtool4all Helpdesk Support Team

---

If you have another ticket system trying to read email from the same inbox as ATS then it makes sense that ATS cannot find any emails; they are caught by the other ticket system...

I cannot help you unless you have a mailbox which is NOT shared with any other ticket system, application, human user, or automation.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Firts of all, I want to say goodbye to Freshdesk, that is why I want to get ATS working :-)

You are redirected to Freshdesk by mistake.

The emailadres is my mistake, sorry. It must be these emailaddresses:

Email:

Server: mail.zxcs.nl (port 993 and 465)

SSL=On

UN= [email protected]

PW= fOHJjWi0

CRON job output goes to:

Server: mail.zxcs.nl (port 993 and 465)

SSL=On

UN= [email protected]

PW= TjYqMSao9

nicholas
Akeeba Staff
Manager

Great news! Now that I have the correct address, it works :)

It looks like there was a bug in the third party Horde library we are using to retrieve email. My associate, Davide, fixed that late on Friday evening. This morning, before doing anything else, I installed this update on your site assuming that you may be affected. And yes, that was it.

I will be making a new release tomorrow which includes this fix.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

As I said. You prove to be an Akeeba-diehard.

Thanx a lot (also to Davide), because I have now a worthy replacement for Freshdesk.

I will config it further and translate it to Dutch by .ini.

nicholas
Akeeba Staff
Manager

You're welcome!

I am very happy that you are switching from a proprietary service to self-hosted, Open Source software. I strongly believe that owning your data is of paramount importance and why I became a FOSS developer in the first place. The pay isn't phenomenal, the hours are long, but if I can help people be back in control of their data then it's all been worth it.

Thank you for being willing to work with me to address your issue. I know that at some point you were frustrated, and I know it wasn't easy to not give up hope. I truly appreciate it.

Have a great evening!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Hi Nicholas

 

I am afraid that after update to stable 5.2.8 the Fetch email doesn't make a ticket now....

Can you take a look again ?

nicholas
Akeeba Staff
Manager

The stable version is identical to the dev release (except the version number).

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

Well, it is working now. :-) I found the issue.

nicholas
Akeeba Staff
Manager

No problem :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!