CoreFiles by mySites.guru
TransportConfigurableMailerInterface.php47 lines, 1,285 bytes, from Joomla_6.2.0-alpha2-Alpha-Full_Package.zip
Raw History Compare with 6.2.0-alpha1
md5
88a7be37a2b4200c02ea44b2879e9fb9
sha1
d8e4f64d469c5534e0184bc669bd792735080003
sha256
13c1b58b2806883a254f72a665b0d3b87f1855c116d4466c378979b4446683bf
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2026 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Mail;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * Provides a common interface to send emails through an SMTP or sendmail service.
 *
 * @since  6.2.0
 */
interface TransportConfigurableMailerInterface
{
    /**
     * Use SMTP for sending the email.
     *
     * @param   string   $auth    SMTP Authentication [optional]
     * @param   string   $host    SMTP Host [optional]
     * @param   string   $user    SMTP Username [optional]
     * @param   string   $pass    SMTP Password [optional]
     * @param   string   $secure  Use secure methods
     * @param   integer  $port    The SMTP port
     *
     * @return  boolean  True on success
     *
     * @since   6.2.0
     */
    public function useSmtp($auth = null, $host = null, $user = null, $pass = null, $secure = null, $port = 25);

    /**
     * Use sendmail for sending the email.
     *
     * @return  boolean  True on success
     *
     * @since   6.2.0
     */
    public function useSendmail($sendmail = null);
}

The same content is in 3 releases, Joomla 6.2.0-alpha2 to 6.2.0-beta1. See them all, or every version of this file.