Sha256: 5fbd6382c997e1017d271169dfb682e15bfb54f1e5d94a4863c52caa662e6102

Contents?: true

Size: 1.15 KB

Versions: 4

Compression:

Stored size: 1.15 KB

Contents

module Fog
  module AWS
    class SES
      class Real

        require 'fog/aws/parsers/ses/send_raw_email'

        # Delete an existing verified email address
        #
        # ==== Parameters
        # * Destinations <~Array> - The destination for this email, composed of To:, From:, and CC: fields.
        # * RawMessage <~Hash> - The message to be sent.
        #   * Data <~String>
        # * Source <~String> - The sender's email address
        #
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>:
        #     * 'DeleteVerfiedEmailAddressResponse'<~nil>
        #     * 'ResponseMetadata'<~Hash>:
        #       * 'RequestId'<~String> - Id of request
        def send_raw_email()
          # TODO: Make this work
          params = AWS.indexed_param('ReplyToAddresses.member', [*reply_to_addresses])

          request({
            'Action'           => 'SendRawEmail',
            :parser            => Fog::Parsers::AWS::SES::SendRawEmail.new
          }.merge(params))
        end

      end

      class Mock

        def send_raw_email()
          Fog::Mock.not_implemented
        end

      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phpfog-fog-0.4.1.3 lib/fog/aws/requests/ses/send_raw_email.rb
phpfog-fog-0.4.1.2 lib/fog/aws/requests/ses/send_raw_email.rb
phpfog-fog-0.4.1.1 lib/fog/aws/requests/ses/send_raw_email.rb
phpfog-fog-0.4.1 lib/fog/aws/requests/ses/send_raw_email.rb