CodeIgniter(CI)·¢Óʼþ±êÌâÖÐÎÄÂÒÂë½â¾ö·½°¸
ÓÃCI¿ò¼Ü·¢ËÍÓʼþÀà ÔÚÖÐÎıêÌâÌ«³¤µÄÇé¿öÏ»á³öÏÖÂÒÂ룬ËÑË÷ºó˵ÊÇ·¢ËÍÓʼþµÄʱºòÓбêÌⳤ¶ÈµÄÏÞÖÆ£¬°´ËµµÄ·½·¨Ð޸ĺ󣬻¹ÊÇûÄܵõ½½â¾ö£¬ºóÀ´·¢ÏÖÐèҪת»»Óʼþ±êÌâµÄ±àÂ룬½â¾ö·½·¨ÈçÏ£º
´ò¿ª libraries/Email.php ÕÒµ½£ºfunction subject($subject)
public function subject($subject) { $subject = $this->_prep_q_encoding($subject); $this->_set_header('Subject', $subject); return $this; }ÐÞ¸ÄΪ£º
public function subject($subject) { //$subject = $this->_prep_q_encoding($subject); $subject = '=?'. $this->charset .'?B?'. base64_encode($subject) .'?='; $this->_set_header('Subject', $subject); return $this; }ÏÂÃæÊÇ·¢ËÍÓʼþµÄ´úÂ룺
function mail(){ $this->load->library('email'); $config['protocol'] = 'smtp'; $config['smtp_host'] = 'ssl://smtp.gmail.com'; $config['smtp_user'] = 'XXXXXXXXXX@gmail.com'; $config['smtp_pass'] = 'XXXXXXXXXXXXX'; $config['smtp_port'] = '465'; $config['smtp_timeout'] = '5'; $config['newline'] = "\r\n"; $config['crlf'] = "\r\n"; $this->email->initialize($config); $this->email->from('XXXXXXXXXX@gmail.com'); $this->email->to('123123123123@qq.com'); $this->email->subject("±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear±±¼«bear"); $this->email->message('¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ¹þ'); $this->email->send(); echo $this->email->print_debugger(); }ÉÏÃæµÄ½â¾ö·½°¸£¬ÎÒ½«CIĬÈϵĶÔÓʼþ±êÌ⣨Subject£©µÄ±àÂ뷽ʽ´Ó Q-Encoding £¨¼ò³Æ Q±àÂ룩±ä³ÉÁË Base64 £¨¼ò³Æ B±àÂ룩£¬Ï£ÍûÄܶԴó¼ÒÓÐËù°ïÖú¡£ÈçÓÐÎÊÌ⻶ÓÁôÑÔÌÖÂÛ¡£
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ