Lib_Test_Enterprise_SendEmailTest

The Gravity Forms Salesforce Add-On Lib Test Enterprise SendEmailTest class.

Defined (1)

The class is defined in the following location(s).

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Enterprise/SendEmailTest.php  
  1. class Lib_Test_Enterprise_SendEmailTest extends Lib_Test_TestAbstractEnterprise 
  2. public function getTestName() 
  3. return 'SendEmail'; 
  4.  
  5. protected function _run() 
  6. $EMAILID = 'hunter@barefootsolutions.com'; 
  7.  
  8. $singleEmail1 = new SingleEmailMessage(); 
  9. $singleEmail1->toAddresses = $EMAILID; 
  10. $singleEmail1->plainTextBody = "Hello there"; 
  11. $singleEmail1->subject = "First Single Email"; 
  12. $singleEmail1->saveAsActivity = true; 
  13. $singleEmail1->emailPriority = EMAIL_PRIORITY_LOW; 
  14.  
  15. $singleEmail2 = new SingleEmailMessage(); 
  16. $singleEmail2->toAddresses = $EMAILID; 
  17. $singleEmail2->plainTextBody = "Hello there"; 
  18. $singleEmail2->subject = "Second Single Email"; 
  19. $singleEmail2->saveAsActivity = true; 
  20. $singleEmail2->emailPriority = EMAIL_PRIORITY_LOW; 
  21.  
  22. echo "***** Send Emails *****\n"; 
  23. $emailResponse = $this->_mySforceConnection->sendSingleEmail(array ($singleEmail1, $singleEmail2)); 
  24.  
  25. print_r($emailResponse);