[Html]
<? Php
Require_once ("email2.php"); // This is php method 2 (SMTP transmission SMTP class)
/**
* Server Information
*/
$ MailServer = 'smtp .163.com '; // smtp Server
$ MailPort = '25'; // The default SMTP server port number is 25.
$ MailId = 'anheng123 @ 163.com '; // server email account
$ MailPw = 'xxxxxxxxxxxxxx'; // server Email Password
/**
* Client information
*/
$ Title = 'System developers report error information'; // mail Title
$ Bt = "sadfsadf ";
$ _ POST ['url'] = "afasdfasfasfsaf ";
$ _ POST ['liance'] = "12312412 ";
$ _ POST ['xiangsi'] = "isa In the first sentence, and I feel like I am modifying it ";
$ Td = $ subject. '<br> '. 'title :'. $ bt. '<br> '. 'url :'. $ _ POST ['url']. '<br> '. 'Contact number :'. $ _ POST ['liance']. '<br> '. 'details :'. $ _ POST ['xiangsi'];
$ Content = $ td; // email Content
$ Email = www.2cto.com target recipient email
$ Smtp = new smtp ($ MailServer, $ MailPort, true, $ MailId, $ MailPw );
$ Smtp-> debug = false;
If ($ smtp-> sendmail ($ email, $ MailId, $ Title, $ Content, "HTML ")){
Echo 'email sent successfully'; // return result
} Else {
Echo 'email sending failed'; // $ succeed = 0;
}
?>
Author: Vericlongmore