Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to send mail using Codeigniter mail function in php

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 361
    Comment on it

    Hello Reader's! If you are working on PHP framework, Codeigniter then you should learn how to send mail by its functions. CI offers you the best way to configure the email and send the mail and you just have to call it on the place required.

    lets see the example below:-

    $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();
    

    You can put this code in controller of model it will work perfect.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: