| 제목 | ci mail 라이브러리 전송 문제 | ||
|---|---|---|---|
| 카테고리 | CI 2, 3 | ||
| 글쓴이 | 뫄뫄잉뿌 | 작성시각 | 2017/11/28 12:51:54 | 
|  | |||
| ci email 라이브러리를 사용하여 메일 테스트중입니다. 근데, 일부는 전송이 되고 일부는 전송이 안됩니다. 
 
$this->load->library('email');
		
		$config['protocol'] = 'sendmail';
		$config['mailpath'] = '/usr/sbin/sendmail';
		//$config['charset'] = 'iso-8859-1';
		$config['charset'] = 'utf-8';
		//$config['mailtype'] = 'html';
		$config['wordwrap'] = TRUE;
		$this->email->initialize($config);
		$this->email->from('test@naver.com', ':test', 'test1@naver.com');
		$this->email->reply_to('test1@naver.com');
		$this->email->to('test1@naver.com');
		
		$data['row'] = $row = $this->report_manage_model->get_report_manage($id);
		
		print_r($row);
		
		$this->email->subject($row->title);
		$this->email->message("테스트입니다.");
	       if ( ! $this->email->send())
		{
			echo "error";
			$this->email->print_debugger(array('body'));
		}
 
 test@naver.com 과 test1@naver.com은 대체한 네이버 이메일 계정이구, test1계정에서 메일 오는 것 확인했습니다. 근데 일부는 전송이되고 일부는 전송이 되지 않습니다. 서버에서 로그로 확인해보니 딱히 에러 찍히는 건 없고, sent도 OK라고 뜹니다. subject부분만 변경해서 테스트 중인데, 차이는 제목의 길이..? 정도 인 것 같습니다. 그렇게 길지도 않은데 다르게 점검해야하는게 있을까요 ㅠㅠ | |||
| 다음글 | CI CORS 설정 (2) | ||
| 이전글 | hook과 autoload관련해서 질문이 있습니다. (2) | ||
| 
                                변종원(웅파)
                                /
                                2017/11/28 12:59:58 /
                                추천
                                0
                             
                                스팸메일함 체크해보세요
                             | 
| 
                                뫄뫄잉뿌
                                /
                                2017/11/28 13:20:14 /
                                추천
                                0
                             @변종원(웅파)님 답변감사합니다! 스팸메일에 가있었네요... ㅠㅠ 감사합니다 |