질문 Q #19080
ci mail 라이브러리 전송 문제
뫄뫄잉뿌 2017-11-28 13:21: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부분만 변경해서 테스트 중인데, 차이는 제목의 길이..? 정도 인 것 같습니다.

그렇게 길지도 않은데 다르게 점검해야하는게 있을까요 ㅠㅠ

답변 2
#1 변종원(웅파) 2017-11-28 13:29:58
스팸메일함 체크해보세요
#2 뫄뫄잉뿌 2017-11-28 13:50:14

@변종원(웅파)님

답변감사합니다! 스팸메일에 가있었네요... ㅠㅠ 감사합니다