นี่เป็นครั้งแรกที่ฉันใช้ appfog ฉันมีแอปพลิเคชัน PHP ฉันต้องการส่งอีเมลจากแอปพลิเคชัน PHP โดยใช้ appfog ฉันใช้เฟรมเวิร์ก CodeIgniter
ฉันสามารถส่งอีเมลจาก localhost ของฉันได้ แต่เมื่อฉันพยายามทำสิ่งเดียวกันโดยใช้ appfog ฉันได้รับข้อผิดพลาด มันบอกว่าการรับรองความถูกต้องล้มเหลว อีเมลของฉันที่ส่งโค้ด PHP ระบุไว้ด้านล่าง
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => 465,
'smtp_user' => '[email protected]',
'smtp_pass' => 'xxxx',
'mailtype' => 'html',
'charset' => 'iso-8859-1',
'wordwrap' => true
);
$message = "Random message";
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from('[email protected]', 'Vatiali');
$this->email->to($this->input->post('email'));
$this->email->subject('Verify Email');
$this->email->message($message);
$this->email->send();