php.ini &SMTP= - 你如何传递用户名 &密码 [英] php.ini & SMTP= - how do you pass username & password

查看:21
本文介绍了php.ini &SMTP= - 你如何传递用户名 &密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 ISP 帐户要求我发送用户名 &出站 SMTP 邮件的密码.

My ISP account requires that I send a username & password for outbound SMTP mail.

如何让 PHP 在执行 php.mail() 时使用它? php.ini 文件只包含服务器 (SMTP= )From: (sendmail_from= ).

How do I get PHP to use this when executing php.mail()? The php.ini file only contains entries for the server (SMTP= ) and From: (sendmail_from= ).

推荐答案

PHP mail() 命令不支持身份验证.您的选择:

PHP mail() command does not support authentication. Your options:

  1. PHPMailer- 教程
  2. - 教程
  3. 自定义函数 - 请参阅注释部分的各种解决方案:http://php.net/manual/en/ref.mail.php

这篇关于php.ini &SMTP= - 你如何传递用户名 &密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆