PHP automatic mail sending function, PHP mail sending Function
Click to view the full text (which contains)
Idea: first set the time in the background. After the time is set, the foreground program will be followed.
Step 1: Execute the JS Code that sets a fixed cookie time value in ajax.:
/********** Set the start time of the participation here. *** execute the execution once every minute *********/
$. Ajax ({
Url: "ajax. php? Action = time_ajax"
});
/*********** Set the end time of participation **********/
Step 2: Set the cookie value in ajax
Case 'time _ ajax ': // defines the place where execution is performed per minute and defines a fixed timestamp. This is to define a ...... click to view the full text (which contains)
How to Write automatic email sending in php
The idea is:
Php end write the email sending code
For more information, see phpMailer.
Php cannot automatically send messages, unless you send a request to him, such as an email verification, that is, a registration request is sent.
The first version is to execute PHP files you have written on the server, such as the linux task plan function.
Teach php to automatically send emails
There are too many methods. If PHP code is used, simply use the mail () function. For more information about the mail function, see the manual. www.pylong.net/..l.html is quite simple.
But please note that the garbled
For more information, see hi.baidu.com/..e.html.
If it is JAVA, one of the methods I have come up with is to call the command or SHELL line in JAVA to execute a PHP mail file after submitting a form. This can also achieve relevant functions. If JAVA communicates directly with PHP, it seems that you want to build a bridge