1👍
✅
send_mail('Confirmation email',
# this is a link you wanted to
"http://127.0.0.1:8000%s" % reverse('user_confirm',kwargs={'key': form1.key}),
request.user.email, [form1.friend.email])
I simply tweaked the send_mail() a bit
Source:stackexchange.com