Class: AmazonSES::Verify

Inherits:
Object
  • Object
show all
Defined in:
lib/amazon_ses/verify.rb

Class Method Summary collapse

Class Method Details

.address(emailaddress, secret, key) ⇒ Object

returns the response object



5
6
7
8
9
10
11
# File 'lib/amazon_ses/verify.rb', line 5

def self.address(emailaddress,secret,key)
  begin
    AmazonSES::Base.make_request({"Action"=>"VerifyEmailAddress","EmailAddress"=>emailaddress},secret,key)
  rescue Exception=>e
    raise e.to_s
  end
end

.address_remove(email, secret, key) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/amazon_ses/verify.rb', line 19

def self.address_remove(email,secret,key)
  begin
    AmazonSES::Base.make_request({"Action"=>"DeleteVerifiedEmailAddress","Emailaddress"=>email},secret,key)
  rescue Exception=>e
    raise e.to_s
  end
end

.list(secret, key) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/amazon_ses/verify.rb', line 12

def self.list(secret,key)
  begin
    AmazonSES::Base.make_request({"Action"=>"ListVerifiedEmailAddresses"},secret,key)
  rescue Exception =>e 
    raise e.to_s
  end
end