$config = array( 'protocol' => 'smtp', 'smtp_host' => 'smtp.gmail.com', 'smtp_port' => 465, 'smtp_timeout' => '5', 'smtp_user' => '[email protected]', 'smtp_pass' => 'xxxxx', //เป็นPassword ของ Email 'mailtype' => 'html', 'charset' => 'iso-8859-1' ); $this->load->library("email",$config); $this->load->model("model_users"); $this->email->from("[email protected]","keng_kg"); $this->email->to($this->input->post("email")); $this->email->subject("Confirm your account."); $message = "<p>Thank you for signing up!<p>"; $message .= "<p><a href='".base_url()."main/register_user/$key'>Click here</a> to confirm your account</p>"; $this->email->message($message); if($this->model_users->add_temp_user($key)){ if($this->email->send()){ echo "The email has been sent!"; }else echo "Could not send the email."; echo $this->email->print_debugger();
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง