3
votes

i've set up django-allauth and using email confirmation when new users register which works fine

but in the confirmation email, i get

Hello from example.com!

    You're receiving this e-mail because user abc13 at example.com has given yours as an e-mail address to connect their account.

    To confirm this is correct, go to http://<mysite>.com/accounts/confirm-email/q3rknxpflshgwddlbjw6aqzlr1ayqtnfrtezucoq2ysmfbm2etcldusq5dyrcoap/

    Thank you from example.com!
    example.com

How can i replace "example.com" with my website name?

thanks

2

2 Answers

12
votes

It sounds like you need to update the Site entry in the Django admin. You can access this at:

http://<yoursite>.com/admin/sites/site/
1
votes

You can also create a fully customised email with something like:

@receiver(user_signed_up)
def user_signed_up_(sender,request,user,**kwargs):

    subject, from_email, to = 'Welcome', 'admin@mysite', 'person@somewhere'
    text_content ="some custom text or html"
    msg = EmailMultiAlternatives(subject, text_content, from_email, [to])
    msg.attach_alternative(html_content, "text/html")
    msg.send()