CI 묻고 답하기

제목 codeigniter 메일 보내기
글쓴이 똘똘 작성시각 2016/04/02 22:01:14
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 16302   RSS

고수님들께 부탁드려요.

코드이그나이터 초보입니다.

코드이그나이터 이메일 보내기 sample코드에는 smtp host가 설정되여 있지 않을때 어떻게 host가 설정되나요?

$this->load->library('email');$this->email->from('your@example.com', 'Your Name');

$this->email->to('someone@example.com'); 

$this->email->cc('another@another-example.com'); 

$this->email->bcc('them@their-example.com'); 

$this->email->subject('Email Test');

$this->email->message('Testing the email class.');

$this->email->send();

echo $this->email->print_debugger();

고수님들께 ....

 다음글 CI에서 차트작성에 관한 질문입니다. (1)
 이전글 memcache save 사용시 row 활용에 대해 질... (1)

댓글

변종원(웅파) / 2016/04/03 17:17:16 / 추천 0

smtp방식으로 메일보내기를 하시려면 smtp 관련 설정을 입력하셔야 발송이 됩니다. ^^;

http://cikorea.net/user_guide_2.1.0/libraries/email.html 이메일 환경설정 부분 참고하세요