PHP automatic mail sending function, PHP mail sending Function

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.