allow only registered users to see content function
I have this option ticked from the settings: "allow only registered users to see content" so as to it a closed site.
Now, on registration page, i wrote code to send user a consent form by using django send_mail function. Here is the problem, if i have that option above ticked, when this new code tried to send email, i was redirected to the login page (it returns me please login page after POST). Is there any way i can by-pass this option once so i can successfully send the email?