Support

Akeeba Ticket System

#40144 Mail-tags don't work

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.4.1
PHP version
8.x
Akeeba Ticket System version
5.3.4

Latest post by nicholas on Wednesday, 24 January 2024 07:30 CST

FrankVo

In the 'assign to' mail the mailtags POST_NAME and POST_USERNAME don't give the real names.

I can see why this happens.

See att.

tampe125
Akeeba Staff

Hello,

that could happen if the HTML code doesn't have those variables correctly formatted. Is it possible to connect to your site to run some tests?

I have made this ticket private so that only you and me can see the information posted here.

Please provide me with the following information:

  1. The URL to your site's administrator login page
  2. Super User username and password
  3. FTP connection information


Please allow up to one business day (GMT+2 timezone) for me to log in to your site and debug this issue. When I'm done I will post back. Once the issue is fixed, you can revoke my access e.g. by changing the Super Administrator and FTP passwords.

IMPORTANT INFORMATION
In order for me to help you fast and accurately, please provide the information by copying the form below, paste it into your reply and fill in the information:

----- Access Information Form -- START -----
Super Administrator access

  • URL to site's administrator page (e.g. http://www.example.com/administrator?foobar):
  • Super User username:
  • Super User password:


FTP connection information

  • FTP methods supported (e.g. FTP, FTPS, SFTP):
  • FTP Hostname:
  • FTP Username:
  • FTP Password:
  • FTP Port (if other than 21 for FTP and 22 for SFTP, ask your host):


----- Access Information Form -- END -----

Please make sure that you have tested the Super Administrator connection using a different browser or machine than the one you are using daily. Double check that logging in is possible and that the user has Super User privileges, i.e. it's not a regular Administrator. Make sure that your site does not block whole countries or IP ranges which would make it impossible for me to log in / connect by FTP. Finally, please do make sure that the FTP connection works and that logging in to it I have access to your site's files.

Kindly note that your site connection information and your site content is handled in strict confidence. Not only we are a reputable development company, we are also bound by law (EU GDPR) to do so. After you file your reply, the connection information to your site will be stored in an encrypted, hidden storage area on our site and will be automatically deleted when this ticket is closed. Finally keep in mind that the people providing support to you are the same developers who wrote the software you're using on your site.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

https://supportdesk4all.nl/wp-admin

UN: adminxl

PW: Tronicus%%44%%


FTP:

Host: 185.104.29.138

UN: [email protected]

PW: dYORs9HwY

tampe125
Akeeba Staff

Hello,

after reviewing the code, the problem comes from the variables that are used. In this case you do not have POSTER_* variables, but ASSIGNER_* ones, so you have to use ASSIGNER_USERNAME and ASSIGNER_NAME

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

This seems to be a bit strange.
If I assign a ticket to another employee, this employee still want to have the posters-name in the head of the ticket or in the content.

Otherwise you cannot see who posted the ticket.

So, the POST_NAME or POST_USERNAME is still (also) wanted in the assigner mail.

FrankVo

I am awaiting for your answer, because in my opinion this is not correct.

It is for sure necessary to have the POSTER_NAME and/or POSTER_USERNAME available in the assign-mail.

Also, ASSIGNER_NAME and ASSIGNER_USRENAME tags are not available in the right-colomn, in mail-edit.

FrankVo

Nicolas? Davide? Is it possible to reply on my ticket(s) please.

See also my next ticket.

tampe125
Akeeba Staff

Hello,

we did check the code, and we will try to implement those variables as well.

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

FrankVo

I understand, but I have a second remark (see my previous replies on this ticket).

Still, POSTER_NAME must be available in assigner-emails. Otherwise you can never know who send the original ticket.

Or this is what you mend in your reply ? But it is something that in my opinion can't last too long to implement.

nicholas
Akeeba Staff
Manager

The emails sent in response to a post being made can, of course, include POSTER_NAME and other POSTER_* variables which refer to the post's owner, i.e. the person who submitted that particular post. Assigned mails get sent in response to a ticket.

The "poster" of a ticket should not be the owner of the ticket's first post as there may not be one, or it may belong to a system account or support staff member (e.g. submitting a ticket on behalf of a user, deleting the first post, changing the first post's ownership etc). So, while the first instinct is to just slap $poster = Permissions::getUser($this->getFirstPost($ticket)); and go on our merry way, that would be wrong.

You can find the updated dev release at https://www.akeeba.com/download/ats-dev/5-3-5-dev202401241330-rev23b83f96.html

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

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!