Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you customize the email message #138

Open
NicolasDhaene opened this issue Jan 26, 2020 · 5 comments
Open

How do you customize the email message #138

NicolasDhaene opened this issue Jan 26, 2020 · 5 comments

Comments

@NicolasDhaene
Copy link

I would like to add element of context like the inviter's name.
Is this possible?

@dspec12
Copy link

dspec12 commented Feb 2, 2020

Override email_invite_message.txt in django-invitations/invitations/templates/invitations/email/.

You can do this by creating the file in the same directory path in your project.

@pcraig3
Copy link

pcraig3 commented Jun 26, 2020

Yeah, if this isn't clear, you can create an .html file in your project at {projectroot}/{app}/templates/invitations/email/email_invite_message.html and it will override the default template.

@jonathanccardoso
Copy link

Yeah, if this isn't clear, you can create an .html file in your project at {projectroot}/{app}/templates/invitations/email/email_invite_message.html and it will override the default template.

This worked for me.

@hellogbg
Copy link

hellogbg commented Mar 23, 2021

Yeah, if this isn't clear, you can create an .html file in your project at {projectroot}/{app}/templates/invitations/email/email_invite_message.html and it will override the default template.

What about email subject? Should it be in the same directory? (I have tried with email_invite_subject.txt in the same directory, but no luck)

@matthew-a-dunlap
Copy link

Yeah, if this isn't clear, you can create an .html file in your project at {projectroot}/{app}/templates/invitations/email/email_invite_message.html and it will override the default template.

What about email subject? Should it be in the same directory? (I have tried with email_invite_subject.txt in the same directory, but no luck)

It looks like the code isn't as flexible for the templates other than email_invite_message. This may be a good place to start looking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants