PHP实现邮件发送的方法

这里简要介绍一下在PHP语言中实现邮件发送的两种方法,分别是使用socket发送和使用mail()函数发送的方式。 1.使用socket发送原理:使用fsockopen函数打开一个Internet连接,函数的参数列表为fsockopen(string hostname,int port,int [errno],string [errstr],int [timeout]),这里由于要使用SMTP协议
相关文章
相关标签/搜索