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

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

问题描述

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

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

执行 php.mail()时,如何获取 PHP 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. PEAR - 教程

  3. 自定义功能 - 查看注释部分中的各种解决方案: http://php.net/manual/en/ref.mail.php

  1. PHPMailer- Tutorial
  2. PEAR - Tutorial
  3. Custom functions - See various solutions in the notes section: http://php.net/manual/en/ref.mail.php

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

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