Introduction: This is an email sending Method Based on the mail service software (IMail) in NT.Program-- (Local version) detailed page, describes related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 327668 'rolling = 'no'>
Many friends are worried about the mail function in PHP. The key is the SMTP service. Most of the commonly used 163 and Sina currently do not support anonymous email sending. That is to say, even if you set SMTP in PHP. ini to smtp.163.net/smtp.sina.com.cn, an error is returned. What should we do? Today, I got an email service software called IMail. I tried it and succeeded. The methods are described as follows:
1. Install IMail. By default, if your machine name is server, its SMTP service name is also server.
2. Check whether the IMail SMTP server is up in "Control Panel"-"service.
3. Modify PHP. ini. Set SMTP = Server
4. Test it.
<? PHP
Echo "<HTML> <body> ";
$ Subject = "test using IMail to send an email ";
$ Message = " </img> for an HTML-formatted email, do you want to know the original program? ";
$ Extra = "from: yukuang@163.net \ ncontent-type: text/html; charset = gb2313 \ ncontent-transfer-encoding: 8bit ";
Echo "Sending mail ...";
Mail ("yourmail", $ subject, $ message, $ extra );
Echo "</body> ?>
More articles about "email sending program based on the mail service software (IMail) under NT-(local version)"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/327668.html pageno: 12.