API15

JMail/addCC: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: ===Description=== Add carbon copy recipients to the email <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</now...
 
m preparing for archive only
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JMail/addCC|Edit Descripton]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>


{{Description:JMail/addCC}}
<! removed transcluded page call, red link never existed >


===Syntax===
===Syntax===
Line 51: Line 51:


<span class="editsection" style="font-size:76%;">
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[SeeAlso:JMail/addCC|Edit See Also]]<nowiki>]</nowiki>
<nowiki>[<! removed edit link to red link >]</nowiki>
</span>
</span>
{{SeeAlso:JMail/addCC}}
<! removed transcluded page call, red link never existed >


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=addCC
  category=addCC
  category=JMail
  category=JMail
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*
  format= ,,,
  format= ,,,
</dpl>
</dpl>
[[Category:Archived pages API15]]

Latest revision as of 00:57, 25 March 2017

Description

Add carbon copy recipients to the email

[<! removed edit link to red link >]

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

Syntax

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

Returns

void

Defined in

libraries/joomla/mail/mail.php

Importing

jimport( 'joomla.mail.mail' );

Source Body

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

Code Examples

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