Welcome Guest, Not a member yet? Register   Sign In
Email Class Issue
#1

[eluser]Unknown[/eluser]
When sending mail using "sendmail", there are issues in setting header so the mail falls to junk folder for hotmail.

Below is the code i used for sending mail

Code:
$config['mailtype'] = 'html';
$this->load->library('email',$config);
$this->email->from($cemail, $cname);
$this->email->to($adminemail);
$this->email->subject($csubject);
$this->email->message($cmessage);
$this->email->send();

Emails send to hotmail using this function ends up in junk folder.

Anyone have faced this issue earlier.

Help me to fix it.
#2

[eluser]Atharva[/eluser]
This is not a CI issue. It depends on other things line your server IP has been blacklisted before or not, shared hosting etc. If you are using shared hosting, many email providers probably will filter it out as spam. Try using gmail smtp which is more reliable.




Theme © iAndrew 2016 - Forum software by © MyBB