PHP Mailbox Mail SMTP
1. The website needs a function to verify the registered user's mailbox in PHP (or how to send an email with PHP, no other features required).
2. Do you need any more SMTP or something, please do me a favor.
Reply to discussion (solution)
can use Phpmailer this class, specific Baidu!
Use Phpmailer.
You need an email account. Use Phpmailer to operate email accounts. That's the best way.
But there is an elastic problem that is filtered out as junk mail. Degree is hard to say, this is why some Web site tips please do not use ... 's mailbox registration.
So if your own site is not famous, it is possible that individual sites will be filtered into the spam mailbox or even directly did not receive. In this case, the best use of individual site accounts, such as NetEase.
What's the first server?
What's the first server?
Windows 2008 32-bit
Php+mysql
Personal host
2.5G Memory
Dual Core Cups
Phpmailer
http://download.csdn.net/detail/yang131261/5987941 LZ can download this example to see
I use Phpmailer in the local test can send mail, but put on the PHP virtual host will not succeed, in Csdn asked several times did not solve. Make me unable to send mail, had to leave a message in the database.
There are two types of verification mailboxes: one is whether the mailbox format is true, and the other mailbox exists. The first way to use regular expressions is to do so. The second kind you need to have an SMTP server that can send mail
1. The website needs a function to verify the registered user's mailbox in PHP (or how to send an email with PHP, no other features required).
2. Do you need any more SMTP or something, please do me a favor.
Before the big gods are all through a variety of technology in the customer received mail to verify, can change a thought: for example, the customer registration when PHP automatically issued a verification link to the customer's mailbox, the customer needs to click to complete the verification. When the customer clicks the link, it automatically passes a value to your server for verification.
The above ideas can, please the great God guidance.
1. The website needs a function to verify the registered user's mailbox in PHP (or how to send an email with PHP, no other features required).
2. Do you need any more SMTP or something, please do me a favor.
Before the big gods are all through a variety of technology in the customer received mail to verify, can change a thought: for example, the customer registration when PHP automatically issued a verification link to the customer's mailbox, the customer needs to click to complete the verification. When the customer clicks the link, it automatically passes a value to your server for verification.
The above ideas can, please the great God guidance.
Of course, many sites "activation" function is not to send mail, click on the activation of it?
The server sends an activation address to the registered mailbox when the user registers (which may contain a unique token or verification code or logo)
Similar to the "ticket in the cinema".
?? What's the most common?? Way:
1. Build the SMTP server on your own server, then modify the php.ini, then use the PHP mail??? Thing
2. Use Phpmailer??,??? After the demo, look at the demo and know how to use it.