GithubHelp home page GithubHelp logo

Comments (7)

joshuakarjala avatar joshuakarjala commented on June 12, 2024

The app generates the token automatically - then in the admin you can manually send out the invite to the user.

Or you could use the invitation_code_sent signal to send out the emails automatically.

On 25/02/2012, at 15.32, Harshil Parikh wrote:

Hi,

Does this app generate an email with an activation token once a user submits an email in the invite form? If you have any working examples of how this works, that would be great.


Reply to this email directly or view it on GitHub:
#2

from django-hunger.

hsparikh avatar hsparikh commented on June 12, 2024

It seems like there is a hard requirement for a BETA_EMAIL_MODULE & BETA_EMAIL_CONFIRM_FUNCTION in receivers.py to successfully send an email. Sorry for the potentially trivial question, but how would these be configured if I am using standard django email settings such as EMAIL_HOST, EMAIL_PORT, etc.

from django-hunger.

yesimon avatar yesimon commented on June 12, 2024

i think it would be a good idea if there were some default invite email sending functions. This can be done fairly easily I believe!

from django-hunger.

joshuakarjala avatar joshuakarjala commented on June 12, 2024

I have added some watered down examples of the email functions I'm currently using.

I'm just using the standard Django email framework to send out these mails.

from django-hunger.

yesimon avatar yesimon commented on June 12, 2024

Perhaps we can have some sensible defaults for these emails. I saw the commit that you attached but they still rely on a user-defined template mail/<template_name>.txt/html, which might be confusing esp. because there isn't much documentation. Can we have as default an email template with request.get_host() (in the case that they aren't using the sites framework)? I think that would be a sensible default option.

from django-hunger.

joshuakarjala avatar joshuakarjala commented on June 12, 2024

I prefer to keep the actual emails as templates in the spirit of many other reusable django apps.

But you're welcome to edit the beta_mails.py to include request.get_host() and add default templates to the examples/ folder

On 26/02/2012, at 11.14, Simon Ye wrote:

Perhaps we can have some sensible defaults for these emails. I saw the commit that you attached but they still rely on a user-defined template mail/<template_name>.txt/html, which might be confusing esp. because there isn't much documentation. Can we have as default an email template with request.get_host() (in the case that they aren't using the sites framework)? I think that would be a sensible default option.


Reply to this email directly or view it on GitHub:
#2 (comment)

from django-hunger.

hsparikh avatar hsparikh commented on June 12, 2024

Thanks for providing the examples. I am not sure if you are actually implementing them right now, but they don't work right off the bat. Certain changes are necessary (mainly removing the signal parameter) to the receiver functions to get them to work properly.

from django-hunger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.