【发布时间】:2012-03-22 11:51:49
【问题描述】:
假设用户 x 在网站上向用户 y 发送了一条消息。 用户 y 在网站上收到通知,但没有收到任何有关此的电子邮件。
我想解决这个问题的唯一方法是在用户 x 将消息发送给用户 y 的代码之后粘贴一些代码以向用户 y 发送电子邮件。
def send_msg(request)
#request.user sends message to other_user
#send email to other_user and let him know about his new message
我不知道这种方法在性能方面有多好。
你的想法是什么?您将如何处理?
【问题讨论】: