Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first不知这是什么问题?如何解决?
解决方案 »
- 用什么方法处理效率较好
- 输出表格边框的问题
- php+JSON,谁能教我如何做这样的搜索
- 帮我看看这段代码
- require_once的问题
- Fatal error: Cannot re-assign $this in D:\php\function.php on line 40 这个解决方法,知道的请进
- 请一个奇怪的 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in 问题!
- php如何设置支持 file_get_contents 函数
- 帮忙修改一下设计思路,分全送,不过不多,只有一百。
- 关于自定义函数的
- PHP5.2与PHP5.3的区别在哪里?
- 怎么用php模拟post提交请求得到相应,能给个例子吗
要使用ssl加密链接
我是在本机安装的apache服务器,如何给它装ssl呢?
我的是带SSL的,可是网上说还得弄证书什么的挺麻烦
和证书有关系吗?
; For Win32 only.
SMTP = smtp.163.com
smtp_port = 25
; For Win32 only.
sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = “D:\xampp\sendmail\sendmail.exe -t”就配置三项,smtp、smtp_port和sendmail_pathsendmail.ini配置[sendmail]
; you must change mail.mydomain.com to your smtp server
smtp_server=smtp.163.com
smtp_port=25
auth_username=yourusername
auth_password=yourpassword
[email protected]网上有下的,如果你是用xampp,那里面直接就带了。同时在虚拟主机的conf里加上这样一句php_admin_value sendmail_path ‘D:\xampp\sendmail\sendmail.exe -t [email protected]’此邮件地址为用户的邮件地址,随便添。
我的操作系统是windows,服务器是apache
还要再安装sendmail吗?
1.从http://glob.com.au/sendmail/下载sendmail.zip
2.解压到C:下,例如C:\php\sendmail,最好短路径,长路径名有可能产生问题。
3.修改php.ini如下
sendmail_path = "C:\wamp\sendmail\sendmail.exe -t"4.根据你自己的配置环境修改sendmail.ini。
第一次最好启用debug.log_file,error_logfile,以查看sendmail是否生效。
5.重启apache
可是php.ini中的
sendmail_path 字段不是 For Unix only 的吗?
我是windows操作系统。
; For Win32 only.
;SMTP = smtp.163.com
;smtp_port = 25
; For Win32 only.
;sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = "D:\www\sendmail\sendmail.exe -t"