Okay this is strange, I was working with WP_Mail()
function, and it's been called successfully from the following statement, and email was delivered correctly.
if ($temp == 'offline-payment') {
$return = $this->send($this->get_recipient(), $this->get_subject() , $this->get_content(), array(), $this->get_attachments());
return $return;
}
However, I tried to add some testing message just after the subject like this:
$this->get_subject().'test'
But the email was marked as spam by Gmail, I've tested it more that one time to be sure.
Why is the email considered as spam, what flags did it raise? More specifically, was it considered as a security flaw?