Skip to content
Advertisement

Unable to send email using PHP mail(). Your server might not be configured to send mail using this method

i tried to send the mail using codeigniter framework.but it will raise the error “Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.

JavaScript

” but no use

here is mycode:

public function sendMail(){

JavaScript

I know it’s duplicate question.but i didn’t find solution for my question

JavaScript

Advertisement

Answer

You are done all correct but you have issue on initialize the mail

Just change this

$this->load->library('email',$config);

to

JavaScript

You can check in details here.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement