开发者

django registration custom send activation email

Can anyone try to overide send_activation_emai开发者_JAVA百科l method?I need to send two different activation email, and in one of them I need to put some extra data (as login, etc.). I see this method in RegistrationProfile class, but this method is calling by creative_inactive_user method which I call in backend.


If you want to make it much easier on yourself, check out this Django plugin that someone wrote for PostageApp.

In PostageApp, you can take care of the different emails by using templates; one parent template with your overall design, and two child templates that contains whatever information that might be necessary. For example, one of your child templates can contain the login information, and the other can have whatever else you might want to include.

I understand if you would want to learn how to do this yourself in Django, but I am just making sure you know of the much easier alternative.

Cheers!

(Full Disclosure: I am the Product Manager for PostageApp)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜