欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  php教程

php发送邮件怎样才能修改发件人名称请老师指教

程序员文章站 2022-06-01 15:32:53
...

我将 $this-username = substr( $from, 0, strpos( $from , "@" ) ); 改成$this-username = "新订单"; 测试,出错: Deprecated : Function set_socket_blocking() is deprecated in E:\www\email\sendEmail.class.php on line 27 错误信息5:535 Error: auth

我将 $this->username = substr( $from, 0, strpos( $from , "@" ) );

改成 $this->username = "新订单";

测试,出错:


Deprecated: Function set_socket_blocking() is deprecated in E:\www\email\sendEmail.class.php on line 27
错误信息5:535 Error: authentication failed 63