source/Core/Email.php
public function sendEmail($to, $subject, $body)
    {
        //set mail params (from, fromName, smtp)
        $this->_setMailParams();

        if (is_array($to)) {
            foreach ($to as $address) {
                $this->setRecipient($address, "");
                $this->setReplyTo($address, "");
            }
        } else {
            $this->setRecipient($to, "");
            $this->setReplyTo($to, "");
        }

        //may be changed later
        $this->isHTML(false);

        $this->setSubject($subject);
        $this->setBody($body);

        return $this->send();
    }
public function sendEmail($to, $subject, $body)
    {
        //set mail params (from, fromName, smtp)
        $this->_setMailParams();

        if (is_array($to)) {
            foreach ($to as $address) {
                $this->setRecipient($address, "");
                $this->setReplyTo($address, "");
            }
        } else {
            $this->setRecipient($to, "");
            $this->setReplyTo($to, "");
        }

        //may be changed later
        $this->isHTML(false);

        $this->setSubject($subject);
        $this->setBody($body);

        return $this->send();
    }
public function sendEmail ( $ to , $ subject , $ body ) { //set mail params (from, fromName, smtp) $ this -> _setMailParams ( ) ; if ( is_array ( $ to ) ) { foreach ( $ to as $ address ) { $ this -> setRecipient ( $ address , "" ) ; $ this -> setReplyTo ( $ address , "" ) ; } } else { $ this -> setRecipient ( $ to , "" ) ; $ this -> setReplyTo ( $ to , "" ) ; } //may be changed later $ this -> isHTML ( false ) ; $ this -> setSubject ( $ subject ) ; $ this -> setBody ( $ body ) ; return $ this -> send ( ) ; }
Basic wrapper for email message sending with default parameters from the oxBaseShop.
Returns true on success.

@param mixed  $to      Recipient or an array of the recipients
@param string $subject Mail subject
@param string $body    Mail body

@return bool
Basic wrapper for email message sending with default parameters from the oxBaseShop . Returns true on success .