STMP, mail, sender-from, to-bcc-addr
Philip Semanchuk
philip at semanchuk.com
Tue Feb 10 10:11:32 EST 2009
On Feb 10, 2009, at 7:29 AM, durumdara wrote:
> Hi!
>
> I wanna ask that have anyone some experience with email.msg and
> smtplib?
>
> The email message and smtp.send already have "sender/from" and
> "recip/addr to".
> Possible the smtp components does not uses the email tags if I not
> define them only in the message?
>
> Can I do same thing as in GMAIL that the mail does not have TO, only
> BCC tags/recipients, and no one of the recipients who knows about
> the each others?
Hi dd,
I'm not exactly sure what you're asking, but my memories of
implementing BCC are that there is no BCC tag. It's your job as the
programmer building the application that sends the message to send the
mail to everyone on the BCC list. Something like this:
for recipient in bcc:
send_mail(to=recipient)
Hope this helps
Philip
More information about the Python-list
mailing list