views.py
if 'send_email' in request.POST: subject, from_email, to = 'Parent Incident Notification',user.email, person.parent_email html_content = render_to_string('incident/print.html',{'person':person, 'report':report, }) text_content = strip_tags(html_content) msg = EmailMultiAlternatives(subject, text_content, settings.DEFAULT_FROM_EMAIL, [to]) msg.attach_alternative(html_content, "text/html") msg.send()
The above is a representation for sending email. So that I can send the contents of html along with the mail, it sends an email to the address [to] one, I want to make another copy and cc as well. I went through Emailmessage objects in docs.I don't know how to enable bcc and cc to change my views.
Need help.
thanks
source share