What are some good solutions for sending verification code emails?

WBOY
Release: 2016-08-10 09:07:14
Original
2323 people have browsed it

The user Passport system, registration, and password retrieval all send verification codes through email. Is there any good solution to achieve this?
I used a private QQ mailbox before. I found that occasionally the system would send me an email asking me to enter a verification code, and I was afraid that if I used it too much, I would be blocked by Tencent or automatically moved to the trash can.
Also, under what circumstances do I need to use a queue to send emails?

Reply content:

The user Passport system, registration, and password retrieval all send verification codes through email. Is there any good solution to achieve this?
I used a private QQ mailbox before. I found that occasionally the system would send me an email asking me to enter a verification code, and I was afraid that if I used it too much, I would be blocked by Tencent or automatically moved to the trash can.
Also, under what circumstances do I need to use a queue to send emails?

The following situations require the use of email queues:
1. When sending emails in batches to multiple users, the queue must be called asynchronously, because after clicking send, the operator may close the page. At this time, only sending emails asynchronously in the background will not work. As for missing emails.
2. Register, log in, and retrieve your password. You can use the SMS platform verification code or the email service area.

If you send a large amount of emails, you usually need to purchase specialized services.

As for using queues, sending emails is a time-consuming operation, and asynchronous implementation is better.

I have used Alibaba’s free corporate email, and it’s no problem sending to 126, QQ and Gmail in China.
Occasionally other email addresses may appear in "Spam".

When using asynchronous implementation, you will generally consider using a message queue. You can consider django celery + RabbitMQ

You can try these things

  1. SendGrid

  2. MailGun

  3. SendCloud

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template