Actions

API16

JUtility/sendAdminMail

< API16:JUtility

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description

Sends mail to administrator for approval of a user submission



Syntax

static sendAdminMail($adminName, $adminEmail, $email, $type, $title, $author, $url=null)
Parameter Name Default Value Description
$adminName $adminName Name of administrator
$adminEmail $adminEmail Email address of administrator
$email $email [NOT USED TODO: Deprecate?]
$type $type Type of item to approve
$title $title Title of item to approve
$author $author Author of item to approve
$url null

Returns

boolean True on success

Defined in

libraries/joomla/utilities/utility.php

Importing

jimport( 'joomla.utilities.utility' );

Source Body

public static function sendAdminMail($adminName, $adminEmail, $email, $type, $title, $author, $url = null)
{
        // Get a JMail instance
        $mail = &JFactory::getMailer();
        return $mail->sendAdminMail($adminName, $adminEmail, $email, $type, $title, $author, $url);
}



Examples

Code Examples


Advertisement