I'm pretty noob in Codeigniter and PHP and is currently learning by making projects and such for school stuff. In my project, email is included. I wanted to know what are the things I should learn in emailing and where to start. What i know is I have to configure it first in codeigniter, I guess sending is easy because there are lots of sources on how to do it. What about receiving? Do i need a third party such as "gmail smpt" for me to do it? Do i need an online server? or can I do it locally? I did google about this "email" thing but there are so many ways to do it and its confusing me. Someone who can explain it to me slowly would be better and provide sources such as step by step tutorials to do email through sending and receiving. Thanks in advance!
1条回答 默认 最新
- duandoucou7200 2015-01-18 15:54关注
Codeigniter has pretty good email system on it. You can learn so much by looking on user guide pretty easy to understand.
You can find out more by reading through the user guide http://www.codeigniter.com/user_guide/
Good tutorial how to set up email codeigniter https://www.youtube.com/watch?v=VlNz6GlSjPo
Email Class http://www.codeigniter.com/user_guide/libraries/email.html
$this->load->library('email'); $config['protocol'] = 'sendmail'; $config['mailpath'] = '/usr/sbin/sendmail'; $config['charset'] = 'iso-8859-1'; $config['wordwrap'] = TRUE; $this->email->initialize($config); $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();
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 DS18B20内部ADC模数转换器
- ¥15 做个有关计算的小程序
- ¥15 MPI读取tif文件无法正常给各进程分配路径
- ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
- ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
- ¥15 setInterval 页面闪烁,怎么解决
- ¥15 如何让企业微信机器人实现消息汇总整合
- ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
- ¥15 如何用Python爬取各高校教师公开的教育和工作经历
- ¥15 TLE9879QXA40 电机驱动