toivo blog
web and other experiments
  • joomla
    • Validating Email Domain
    • Accessing External Databases
    • Fetching User Custom Fields in Joomla 4
    • Updating articles by deleted authors
    • how to list users with custom fields
    • finding the origin of cryptic messages
    • careful with uninstall
    • adding time to logged-In users
    • How to Debug Email in Joomla
    • Troubleshooting SMTP Connection in Joomla 3.x
    • Gmail as SMTP host in Joomla 3.x
  • hiking
    • viking way part 1
    • viking way part 2
  1. You are here:  
  2. Home
  3. Home

Gmail as SMTP Host in Joomla 3.6.5

Make sure you have Google 2-Step Verification turned on: https://www.google.com/landing/2step/

As explained in this article: https://support.google.com/accounts/answer/185833?hl=en, create an application specific password, "App Password", 'my-app-password' below, for your SMTP connection: https://security.google.com/settings/security/apppasswords

Now you can use the following mail settings:

Mailer SMTP
SMTP Host smtp.gmail.com
SMTP Port 587
SMTP Security STARTTLS
SMTP Authentication Yes
SMTP Username This email address is being protected from spambots. You need JavaScript enabled to view it.
SMTP Password my-app-password

Details
Written by: Toivo Talikka
Category: Joomla
Published: 16 December 2016
Hits: 11011

Troubleshooting SMTP connection in Joomla 3.x

If your Joomla! site has issues in connecting to your SMTP mail server, it is possible to get a detailed log of all the messages exchanged between your Joomla site and the SMTP server.  Inspecting this low level transaction log allows you to see what is going wrong between the two servers and then get your IT department or hosting provider to resolve any connectivity issues. 

Go to Extensions - Plugins and configure the system plugin 'System - Debug' with the following settings:

  • Allowed Groups: Super Users
  • Log Priorities:  All
  • Log Categories: mail
  • Log Almost Everything

 

20180425 system debug plugin 20180425 system debug logging

 

Go to Global Configuration and turn on the debug option in the System tab - Debug Settings - Debug System.  

20180425 debug settings

 

Go to the Server tab - Mail Settings and click the button Send Test Mail. 

20180425 mail settings

 

The test result, success or failure, will then get displayed as a system message, but you can download the detailed log file 'everything.php' from the Joomla log folder, usually administrator/logs, or, if your site was installed much earlier, from the /logs folder in the main Joomla folder.

20180425 everything example

 And this is the email we would like to receive from the website:

20180415 test mail

More about logging from the Joomla! Documentation at https://docs.joomla.org/Using_JLog

Details
Written by: Toivo Talikka
Category: Joomla
Published: 26 April 2018
Hits: 11869

Adding Time to Logged-In Users

The Joomla 3.x Control Panel shows a list of users who were active at the site, at the front end or the back end.  

logged in before

The data is displayed by a module called Logged-in Users.  In previous versions of Joomla the time of the last activity was also displayed for each user, which was useful.  In version 3.x only the date is included.  If you want to add the time back to the listing, it can be done easily in a template override.  Here are brief instructions how to do that in Joomla 3.4.3, using the Isis administration template.

Copy the file administrator/modules/mod_logged/tmpl/default.php to administrator/templates/isis/html/mod_logged and edit line 44 there:
 
<span class="icon-calendar"></span> <?php echo JHtml::_('date', $user->time, JText::_('DATE_FORMAT_LC4')); ?>
 
Replace with this version:
 
<span class="icon-calendar"></span> <?php echo JHtml::_('date', $user->time, 'Y-m-d H:i'); ?>
 
logged in after
 

If you do not want to hard code the date & time format into the layout, you can define your own format as a language constant in the Language Manager - Overrides.

Subsequent Joomla updates will not overwrite the override code but you need to maintain it, should something change in the core code.

Details
Written by: Toivo Talikka
Category: Joomla
Published: 10 July 2015
Hits: 13616
  • joomla

Accessing External Databases

Would you like to create a module to display some statistics from another Joomla site, hosted in the same server? That is perfectly possible and relatively simple, by using the Joomla database connection to an external database.

A proof of concept module, Databases, can be downloaded from https://extensions.talikka.com/downloads/databases/mod_databases-1.0.0.zip

 

Details
Written by: Toivo Talikka
Category: Joomla
Published: 01 September 2024
Hits: 13133

Page 2 of 5

  • 1
  • 2
  • 3
  • 4
  • 5

Visitors

We had 902 visitors online in the last 2 days.