PHPMailer + SSL使用
<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =
<?php require('phpmailer/class.phpmailer.php'); require('phpmailer/class.smtp.php'); $mailer = new PHPMailer(); // 使用SMTP形式发送 $mailer->IsSMTP(); // 编码 $mailer->CharSet =
telnet mail.kyzy.cc 25Trying xxx.62.116.147...Connected to mail.kyzy.cc.Escape character is '^]'.220 mail.kyzy.cc ESMTP Postfixmail from:250 2.1.0 Okrcpt to:mailto:[email protected] 5.7.1 mailto:xxxxx@
一、删除系统自带的sendmailapt remove sendmail 二、安装postfix,dovecotapt install postfix dovecot-core dovecot-imapd dovecot-pop3d 三、配置postfix生成受信任的证书上面的证书可以通过自己创建一个域名的方式进行生成,然后将证书用于下面的SSL证书配置1、配置postfix基本参数vi /etc