Skip to content

Script to test and verify email sending in Joomla

Notifications You must be signed in to change notification settings

walitoff/joomla-email-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Joomla Badge PHP Badge

Banner

This is a simple script to test the email sending functionality of Joomla. It allows sending an email to a specific address with a specific subject and body. This helps to confirm that the email settings are correct and the emails are sent correctly. The script supports all available Joomla mail configuration options, including SMTP and PHPMailer.

Usage

  1. Download the script email-test.php
  2. Upload it to the root of your Joomla installation
  3. Run the script from console (SSH)

Parameters

Script accepts 3 parameters:

  1. Email address of recipient (required)
  2. Email subject (optional)
  3. Email body (optional)

Usage example

php email-test.php user@example.org "Test email" "This is a test email"

Sample output

user@server:/var/www/web# php email-test.php test-prdnmijk9@srv1.mail-tester.com
Detected PHP 8.2.12
Detected Joomla 3.10.12
Email recipient: test-prdnmijk9@srv1.mail-tester.com
Email subject: Test email from Joomla
Email body: This is a test email from Joomla.
Email sent. Check the mailbox.

Useful links

Releases

No releases published

Languages