Method: CentralIndex#postEmail
- Defined in:
- lib/CentralIndex.rb
#postEmail(to_email_address, reply_email_address, source_account, subject, body, html_body) ⇒ Object
Send an email via amazon
@param to_email_address - The email address to send the email too
@param reply_email_address - The email address to add in the reply to field
@param source_account - The source account to send the email from
@param subject - The subject for the email
@param body - The body for the email
@param html_body - If the body of the email is html
@return - the data from the api
587 588 589 590 591 592 593 594 595 596 |
# File 'lib/CentralIndex.rb', line 587 def postEmail( to_email_address, reply_email_address, source_account, subject, body, html_body) params = Hash.new params['to_email_address'] = to_email_address params['reply_email_address'] = reply_email_address params['source_account'] = source_account params['subject'] = subject params['body'] = body params['html_body'] = html_body return doCurl("post","/email",params) end |