Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.53 KB

README.md

File metadata and controls

40 lines (33 loc) · 1.53 KB

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