2010-07-31 18 views

回答

3
function signup(){ 

    #stripped out the validation code 

    #stripped out the db insert code 

    $data = array(
    'some_var_for_view'=>'Some Value for View' 
    ); 

    $htmlMessage = $this->parser->parse('user/email/signup_html', $data, true); 
    $txtMessage = $this->parser->parse('user/email/signup_txt', $data, true); 

    #send the message 
    $this->email->from('[email protected]', 'CSSNinja'); 
    $this->email->to($this->input->post('email_address')); 
    $this->email->subject('Account Registration Confirmation'); 
    $this->email->message($htmlMessage); 
    $this->email->alt_message($txtMessage); 
    $this->email->send(); 

} 

我的問題是現在解決了這個代碼鏈接發現下面

http://www.webdevkungfu.com/email-templates-with-codeigniter/

相關問題