I'm using php mail library to send email. The mail is getting delivered in spam instead of inbox.I want it to be delivered in inbox only. Would you please help me out with same. Below is my code
$config['charset'] = 'iso-8859-1';
$config['wordwrap'] = TRUE;
$config['protocol'] = 'sendmail';
$this->email->initialize($config);
$this->email->from('info@etechdata.in', 'ETechData');
$this->email->to('er.alfiyasiddiqui26@gmail.com');
$this->email->subject('Verification');
$this->email->message('Just for testing');
echo $this->email->send();