I use the CI library for email.
$this->load->library('email');
And my mail function.
$this->email->clear(); $this->email->set_mailtype("html"); $this->email->to($user_info[0]['email'] ); $this->email->from(' admin@workerbee.com '); $this->email->subject($data['news_letter_info'][0]['subject']); $this->email->message($data['news_letter_info'][0]['template_body']); $this->email->send();
All values โโarrive correctly, and mail also delivers. But he got into the spam folder in gmail. Can anyone understand why this mail is considered spam. What is the cause of spam mail.
source share