django-invitations icon indicating copy to clipboard operation
django-invitations copied to clipboard

How do you customize the email message

Open NicolasDhaene opened this issue 5 years ago • 5 comments

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

NicolasDhaene avatar Jan 26 '20 16:01 NicolasDhaene

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.

dspec12 avatar Feb 02 '20 20:02 dspec12

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.

pcraig3 avatar Jun 26 '20 16:06 pcraig3

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.

jonathanccardoso avatar Aug 19 '20 13:08 jonathanccardoso

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)

hellogbg avatar Mar 23 '21 22:03 hellogbg

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.

matthew-a-dunlap avatar Jun 10 '21 15:06 matthew-a-dunlap