我想使用一個PHP變量作爲使用AWS PHP SDK亞馬遜SES目標電子郵件電子郵件目的地...以下是代碼使用PHP變量作爲SES
$email = new AmazonSES();
$recip = array("ToAddresses"=>"$email");
$message = array("Subject.Data"=>"Welcome to Weather Warnings","Body.Text.Data"=>"tester");
$email->send_email("[email protected]",$recip, $message);
相關線路我的錯誤是......設置recip變量的行是第31行
可捕獲的致命錯誤:AmazonSES類的對象無法轉換爲/home/websites/wxwarn/customer/register.php中的字符串第31行