diff --git a/application/common/library/Email.php b/application/common/library/Email.php index acd24984a5ba45640ab5c3bbe6870691adf8f49a..bb236fee4c673ead8b2cc868a9478c1de13f0843 100644 --- a/application/common/library/Email.php +++ b/application/common/library/Email.php @@ -64,13 +64,13 @@ class Email $this->mail->isSMTP(); $this->mail->SMTPAuth = true; $this->mail->Host = $this->options['mail_smtp_host']; - $this->mail->Username = $this->options['mail_smtp_user']; + $this->mail->Username = $this->options['mail_from']; $this->mail->Password = $this->options['mail_smtp_pass']; $this->mail->SMTPSecure = isset($securArr[$this->options['mail_verify_type']]) ? $securArr[$this->options['mail_verify_type']] : ''; $this->mail->Port = $this->options['mail_smtp_port']; //设置发件人 - $this->from($this->options['mail_from']); + $this->from($this->options['mail_from'], $this->options['mail_smtp_user']); } /**