Php 如何使用aws服务器解决codeigniter邮件变成垃圾邮件
始终使用codeigniter将电子邮件发送到垃圾邮件部分。我在aws服务器中使用了codeigniter 这是我的图书馆: 由PHPMailer支持的CodeIgniter兼容电子邮件库 这是我的控制器:Php 如何使用aws服务器解决codeigniter邮件变成垃圾邮件,php,amazon-web-services,codeigniter,email,phpmailer,Php,Amazon Web Services,Codeigniter,Email,Phpmailer,始终使用codeigniter将电子邮件发送到垃圾邮件部分。我在aws服务器中使用了codeigniter 这是我的图书馆: 由PHPMailer支持的CodeIgniter兼容电子邮件库 这是我的控制器: <?php $this->load->library('email'); $subject = 'Regitration'; $message = '<p>Thank you for regi
<?php
$this->load->library('email');
$subject = 'Regitration';
$message = '<p>Thank you for registering.</p>';
$body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=' . strtolower(config_item('charset')) . '" />
<title>' . html_escape($subject) . '</title>
<style type="text/css">
body {
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 16px;
}
</style>
</head>
<body>
' . $message . '
</body>
</html>';
$result = $this->email->set_header('hello', 'test')
->set_newline("\r\n")
->from('test@gmail.com','test')
->to($this->input->post('jobemail'))
->subject($subject)
->message($body)
->send();
?>
email->set_头('hello','test'))
->设置新行(“\r\n”)
->从('test@gmail.com","测试")
->到($this->input->post('jobemail'))
->主题($subject)
->消息($body)
->send();
?>
如何解决