I have a functionality in a Django app to send an email to all registered users, I currently email it 'And it works perfectly, but everyone gets an email from another recipient who is unwanted.
Is there a way to hide the recipient using the Django mailing function?
Thank you. / P>
When you start the email message class, you can provide the BCC feature as an example.
There is a container for the e-mail message. "" "Content_subtype = 'plain' mixed_subtype = 'assorted' encoding = none # none => use settings default def __init __ (self, subject = '', body = '', to_email = none, = No, BCC = None, Connection = None, Enclosure = None, Headings = None, CC = None):
So if you are using BCC Recipients provide you the target email as a BCC recipient.
message = email message ('hello', 'body', bcc = ['user@email.com',]) message.send ()
No comments:
Post a Comment