views.pydjango içinde bcc e-posta ve cc göndermek
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()
yukarıda, bu e-posta gönderirken i mail ile birlikte html içeriği gönderebilir bu şekilde email.By göndermek için görünümdür [ tek başına adres, ben başka bir bcc ve cc de yapmak istiyorum. Ben docs içinde Emailmessage objects
geçti. Ben benim görüşlerini değiştirmek için bcc ve cc nasıl dahil bilmiyorum.
Yardım gerekiyor.
Teşekkür