如何在我的网站上获得用户活动 [英] how to get user activities in my website

查看:63
本文介绍了如何在我的网站上获得用户活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,我将为用户提供电子邮件服务,我想了解有关
的信息 1.用户向谁发送邮件.
2.如何为用户保留特定信息.
3.用户发送多少邮件.

In my website i am going to have email service for user and i want to know the information about
1. To whom the user sending mail.
2. how to remainder the user a particular information.
3. how many mails the user sending.

推荐答案

您好,
我不太了解2,也许您可​​以解释?
至于其余的,您有几个选择.
您将需要一个透明的邮件后端,并使用某种API.例如,您可能希望能够将邮件插入mysql,来自pop/imap的邮件等.
基于这些,您可以拥有另一个数据库(无论是mysql,MSSql等),该数据库记录接收到的消息数.
当用户收到一条消息时,只需获取接收到的消息数,然后将其新消息计数添加到该行中即可.
发送相同:用户发送消息时,只需抓住该行,然后将消息数添加到发送的行中即可.
Hello,
I don''t quite understand 2, perhaps you could explain?
As for the rest, you have a few options.
You will want a mail backend that will be transparent, with some sort of API for it to use. For example, you will probably want to be able to plug in mail to mysql, mail from pop/imap, etc.
Based on these, you can have another database (whether it is mysql, MSSql, etc) that records the number of messages received.
When the user gets a message, just get the number of messages received and add their new message count to the row.
Same for sending: When the user sends a message, just grab that row, add the number of messages to the sent row.


这篇关于如何在我的网站上获得用户活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆