php - mails are going to spam folder when i change from mail -


this mail going spam. when change email->from goes inbox. how send email inbox email id
$this->email>from("sweco@suzlon.com");

        $this->email->from("sweco@suzlon.com");         $this->email->to("marmik0011@gmail.com");          $this->email->subject($subject);                $this->email->message($body);         $this->email->set_mailtype('html');          $this->email->send(); 

this mail going inbox.

        $this->email->from("info@gmail.com");         $this->email->to("marmik0011@gmail.com");          $this->email->subject($subject);                $this->email->message($body);         $this->email->set_mailtype('html');          $this->email->send(); 

3 things need do:

  • from email should existing (so create 1 if not created)
  • add name person name <emailaddress>
  • also, add email address reply-to in headers

Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -