| 제목 | 이메일 보내기 메일이 안와요????? 무슨 문제인지 알려주세요 | ||
|---|---|---|---|
| 카테고리 | CI 2, 3 | ||
| 글쓴이 | 일성 | 작성시각 | 2017/12/07 16:54:40 |
|
|
|||
public function add(){
if($this->input->post('add')){
$config = Array(
'protocol' => 'smtp',
'smtp_host' => 'ssl://smtp.googlemail.com',
'smtp_port' => '465',
'smtp_user' => 'admin@gmail.com',
'smtp_pass' => 'pw'
);
$this->load->library('email', $config);
$this->email->set_newline("\r\n");
$this->email->from('admin@gmail.com', 'admin');
$this->email->to('admin@gmail.com');
$this->email->subject('Email Test');
$this->email->message('Testing the email class.');
if($this->email->send()){
echo '성공';
}else{
show_error($this->email->print_debugger());
}
}
}
이런 코드로 메일보내기는 하는데 성공이라는 메시지는 나오는데 메일이 안오는데 어떻하면되는지 알려주세요 고수님들아
|
|||
| 다음글 | 세션 공유에 대해서 여쭙니다. (6) | ||
| 이전글 | 현재 페이지에 열려 있는 php의 파일 이름을 알 수 ... (4) | ||
|
변종원(웅파)
/
2017/12/07 16:55:52 /
추천
0
스팸메일함 확인해보세요
|
|
일성
/
2017/12/07 16:58:38 /
추천
0
스팸메일 확인해도 없네요
|
|
변종원(웅파)
/
2017/12/07 17:16:55 /
추천
0
|
|
일성
/
2017/12/07 17:31:55 /
추천
0
$config = Array( 'protocol' => 'smtp', 'smtp_host' => 'ssl://smtp.gmail.com', 'smtp_port' => '465', 'smtp_user' => 'admin@gmail.com', 'smtp_pass' => 'pw' ); Host 변경을 해도 안옵니다 스팸매일 함에도 |
|
kaido
/
2017/12/08 08:03:35 /
추천
0
$config['smtp_timeout'] = 5; $config['wordwrap'] = TRUE; $config['wrapchars'] = 76; $config['mailtype'] = 'html'; $config['charset'] = 'utf-8'; $config['validate'] = FALSE; $config['priority'] = 3; $config['crlf'] = "\r\n"; $config['newline'] = "\r\n"; $config['bcc_batch_mode'] = FALSE; $config['bcc_batch_size'] = 200; 추가해서 테스트해 보세요 |
|
변종원(웅파)
/
2017/12/08 10:38:10 /
추천
0
콘솔에서 메일 보내보세요. 서버에서 포트 막혀있는지도 체크해보시구요
|