Verifying user mailboxes with PHP

Source: Internet
Author: User
Tags email account
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.

  • 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.