API15

JMail/JMail

From Joomla! Documentation

< API15:JMail
Revision as of 13:35, 12 May 2013 by JoomlaWikiBot (talk | contribs) (removing red link to edit, no existant pages)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The "API15" 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[edit]

Constructor

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

JMail()


Defined in[edit]

libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

Source Body[edit]

function JMail()
{
         // phpmailer has an issue using the relative path for it's language files
         $this->SetLanguage('joomla', JPATH_LIBRARIES.DS.'phpmailer'.DS.'language'.DS);
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

<CodeExamplesForm />

May not always work

addCC may not always work on 1.5 due to an error in the phpmailer class. to forum topic.


E-builds 05:36, 1 March 2011 (CST) Edit comment

===Description===

Add carbon copy recipients to the email



Syntax[edit]

addCC($cc)
Parameter Name Default Value Description
$cc $cc Either a string or array of strings [e-mail address(es)]

Returns[edit]

void

Defined in[edit]

libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

Source Body[edit]

public function addCC($cc)
{
        //If the carbon copy recipient is an aray, add each recipient... otherwise just add the one
        if (isset ($cc))
        {
                if (is_array($cc)) {
                        foreach ($cc as $to) {
                                $to = JMailHelper::cleanLine($to);
                                parent::AddCC($to);
                        }
                } else {
                        $cc = JMailHelper::cleanLine($cc);
                        parent::AddCC($cc);
                }
        }
}



Examples[edit]

Code Examples[edit]

May not always work

addCC may not always work on 1.5 due to an error in the phpmailer class. to forum topic.


E-builds 05:36, 1 March 2011 (CST) Edit comment

===Description===

Add carbon copy recipients to the email

[<! removed edit link to red link >]

<! removed transcluded page call, red link never existed >

Syntax[edit]

addCC($cc)
Parameter Name Default Value Description
$cc $cc Either a string or array of strings [e-mail address(es)]

Returns[edit]

void

Defined in[edit]

libraries/joomla/mail/mail.php

Importing[edit]

jimport( 'joomla.mail.mail' );

Source Body[edit]

function addCC($cc)
{
        //If the carbon copy recipient is an aray, add each recipient... otherwise just add the one
        if (isset ($cc))
        {
                if (is_array($cc)) {
                        foreach ($cc as $to) {
                                $to = JMailHelper::cleanLine( $to );
                                parent::AddCC($to);
                        }
                } else {
                        $cc = JMailHelper::cleanLine( $cc );
                        parent::AddCC($cc);
                }
        }
}

[<! removed edit link to red link >] <! removed transcluded page call, red link never existed >

Examples[edit]

Code Examples[edit]

May not always work

addCC may not always work on 1.5 due to an error in the phpmailer class. to forum topic.


E-builds 05:36, 1 March 2011 (CST) Edit comment