0
我应该连接到一个经过smtp认证的服务器,然后使用特定的邮箱发送电子邮件,因为stmp服务器已通过认证和级别域。PHPmailer SMTP域级别
根据我的供应商,凭证:
- 服务器authsmtp.domain.com
- 用户:[email protected]
- 密码:***
但我想从[email protected]发送电子邮件,而不是[email protected] 我如何使用PhpMailer做到这一点?我在PhpMailer中没有两个用户字段。
$mail->IsSMTP();
$mail->SMTPAuth
$mail->SMTPSecure
$mail->Host
$mail->Port
$mail->Username
$mail->Password
因此,只需更新您的凭据而不是提供商 –
用户连接到邮件服务器是[email protected],我无法使用[email protected]登录。但我想从myaccount @发送电子邮件。 – Drew