A recent project requires SMTP to send mail, the previous library class does not exist, and does not like to install pear or use the Pear net/smtp class, feeling too complex. Directly from the Discuz to extract the core slightly modified under.
From
Mail sending through socket
Class MailCls {private $ mEmails; function setEmailInfo ($ emails) {if (is_array ($ emails )) {$ this-> mEmails ['email _ to'] = $ emails ['email _ to']; # process the Mail title if (isset ($ emails ['email _ subobject'])
// This program is used for a search. Currently, it is designed to serve the document library.// Editor: Kong xiuxiang. Date: 2001/4/10If (! $ UploadAction ):Require "config. php3 ";If (! Isset ($ table )){// $ Table = "artical ";}/*$ Link_id = @
The code for sending mails using SMTP in php the latest project needs to use SMTP to send mails. the previous library class does not exist and does not like to install pear or use the net/smtp class of pear, it is too complicated. The core is
This program for a search, the current design services in the article library.
Editor: Kong Xiuxiang. Date: 2001/4/10
if (! $UploadAction):
Require "CONFIG.PHP3";
if (!isset ($table)) {
$table = "artical";
}
/*
$link _id= @MYSQL_CONNECT ($hostname, $
// Book
Program For a search, currently designed to serve
Article Library.
// Editor: Kong xiuxiang. Date: 2001/4/10
If (! $ Uploadaction ):
Require "config. php3 ";
If (! Isset ($ table )){
// $ Table = "artical ";
}
/*
$ Link_id = @
A recent project needs to use SMTP to send mail, the previous library class does not exist, do not like to install pear or use Pear's net/smtp class, it is too complicated. The core is extracted directly from the Discuz and slightly modified.
From
Characteristics of the virus:
The biggest feature of the virus is self-replicating, from the classification of viruses there are many kinds, here we will introduce the most popular add-onVirus, which is adapted to the normal file to achieve its own
Php class for text file operations
Var $ file;
Var $ index;
// Create a file and write it into the input.
Function null_write ($ new ){
$ F = fopen ($ this-> file, "w ");
Flock ($ f, LOCK_EX
If you cannot install IMAIL on the server, you can only send emails through socket. However, if you are lucky, you can also use the smtp service of 163sina. The routine is as follows (the original program is provided by Ma Yi brother):
PHP text Operation class. Copy the code as follows :? PhpclassCtbClass {var $ file; var $ index; create a file and write the input functionnull_write ($ new) {$ ffopen ($ this-file, w); flock ($ f, LOCK_EX); fput
The code is as follows:
Class
Phison-up10 production tools v1.78.00: phison-up10 production tools v1.78.00PHP text Operation class: Copy the code is as follows: & lt ;? PhpclassCtbClass {var $ file; var $ index; create a file and write it to the input functionnull_write ($ new ){
var $file;
var $index;
Create a file and write the input
function Null_write ($new) {
$f =fopen ($this->file, "w");
Flock ($f, LOCK_EX);
Fputs ($f, $new);
Fclose ($f);
}
Add data record to end of file
IMail
If you are unable to install IMAIL on the server, you can only send mail through the socket. But if you're lucky, you can also use 163/sina.
SMTP Service.
The routines are as follows (the original program was provided by Ma):
Mail Form
Http://www.51cto.com Author: Zhu Xianzhong compiled source: 51CTO.com
[Guide] In this article, we will analyze how to create a PHP class to implement communication between our Web email client and
Copy codeThe Code is as follows: Class CtbClass {
Var $ file;Var $ index;
// Create a file and write it into the input.Function null_write ($ new){$ F = fopen ($ this-> file, "w ");Flock ($ f, LOCK_EX );Fputs ($ f, $ new );Fclose ($ f );}// Add
I. Introduction
In the second part of this series, I show you all the JavaScript Functions that constitute the entire POP3 client. To retrieve and display email messages on the web page, and create a function to add appropriate behaviors to each
Copy Code code as follows:
Class Ctbclass {
var $file;
var $index;
Create a file and write input
function Null_write ($new)
{
$f =fopen ($this->file, "w");
Flock ($f, LOCK_EX);
Fputs ($f, $new);
Fclose ($f);
}
Add data log to
Long time to write something ..... Recently, life is depressing .... For the life and tired, tidy up the example of e-mail sent, there are many online, I am also a good extract, test OK, home Mail class smtp_email_class.php as follows:Class
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.