library/Garp/Service/Amazon/Ses.php
public function sendRawEmail($args) {
        $args = $args instanceof Garp_Util_Configuration ? $args : new Garp_Util_Configuration($args);
        $args['Action'] = 'SendRawEmail';
        $args->obligate('RawMessage');
        $args = (array)$args;

        // normalize so-called "String List" parameters
        if (!empty($args['Destinations'])) {
            $destinations = $this->_arrayToStringList((array)$args['Destinations'], 'Destinations');
            $args += $destinations;
            unset($args['Destinations']);
        }
        $args['RawMessage.Data'] = $args['RawMessage'];
        unset($args['RawMessage']);

        $response = $this->_makeRequest((array)$args);
        return true;
    }
public function sendRawEmail($args) {
        $args = $args instanceof Garp_Util_Configuration ? $args : new Garp_Util_Configuration($args);
        $args['Action'] = 'SendRawEmail';
        $args->obligate('RawMessage');
        $args = (array)$args;

        // normalize so-called "String List" parameters
        if (!empty($args['Destinations'])) {
            $destinations = $this->_arrayToStringList((array)$args['Destinations'], 'Destinations');
            $args += $destinations;
            unset($args['Destinations']);
        }
        $args['RawMessage.Data'] = $args['RawMessage'];
        unset($args['RawMessage']);

        $response = $this->_makeRequest((array)$args);
        return true;
    }
public function sendRawEmail ( $ args ) { $ args = $ args instanceof Garp_Util_Configuration ? $ args : new Garp_Util_Configuration ( $ args ) ; $ args [ 'Action' ] = 'SendRawEmail' ; $ args -> obligate ( 'RawMessage' ) ; $ args = ( array ) $ args ; // normalize so-called "String List" parameters if ( ! empty ( $ args [ 'Destinations' ] ) ) { $ destinations = $ this -> _arrayToStringList ( ( array ) $ args [ 'Destinations' ] , 'Destinations' ) ; $ args += $ destinations ; unset ( $ args [ 'Destinations' ] ) ; } $ args [ 'RawMessage.Data' ] = $ args [ 'RawMessage' ] ; unset ( $ args [ 'RawMessage' ] ) ; $ response = $ this -> _makeRequest ( ( array ) $ args ) ; return true ; }
Sends an email message, with header and content specified by the client. The SendRawEmail action is useful for sending multipart MIME emails.
The raw text of the message must comply with Internet email standards; otherwise, the message cannot be sent.
@param Array|Garp_Util_Configuration $args Might contain;
['RawMessage']      [required]  String  The raw email message (headers and body)
['Source']          [optional]  String  A FROM address
['Destinations']    [optional]  Array   Email addresses of recipients (optional because TO fields may be present in raw message)
@return Boolean
Sends an email message with header and content specified by the client . The SendRawEmail action is useful for sending multipart MIME emails . The raw text of the message must comply with Internet email standards ; otherwise the message cannot be sent .