public function buildParameters()
    {
        $params = array();

        if (!empty($this->_attachments)) {
            $this->action = 'SendRawEmail';
            $params['RawMessage.Data'] = $this->_buildRaw();
            return $params;
        }


        $i = 1;
        foreach ($this->_to as $to) {
            $params['Destination.ToAddresses.member.' . $i] = $to;
            $i++;
        }

        $i = 1;
        foreach ($this->_cc as $cc) {
            $params['Destination.CcAddresses.member.' . $i] = $cc;
            $i++;
        }

        $i = 1;
        foreach ($this->_bcc as $bcc) {
            $params['Destination.BccAddresses.member.' . $i] = $bcc;
        }

        $i = 1;
        foreach ($this->_replyTo as $replyTo) {
            $params['ReplyToAddresses.member.' . $i] = $replyTo;
        }

        $params['Source'] = $this->_source;

        if ($this->_returnpath) {
            $params['ReturnPath'] = $this->_returnpath;
        }

        $params['Message.Subject.Data'] = $this->_subject;
        $params['Message.Subject.Charset'] = $this->_charset;

        if (strlen($this->_body)) {
            $params['Message.Body.Text.Data'] = $this->_body;
            $params['Message.Body.Text.Charset'] = $this->_charset;
        }

        if (strlen($this->_htmlBody)) {
            $params['Message.Body.Html.Data'] = $this->_htmlBody;
            $params['Message.Body.Html.Charset'] = $this->_charset;
        }

        return $params;
    }