Is there any way to add multiple receivers in Python SMTPlib?

后端 未结 2 1750
迷失自我
迷失自我 2020-12-11 06:25

I was wondering. Is there any way to add multiple receivers in Python on its default SMTPlib?

Like (subject and content set already, smtp server gmail.):

<         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 07:16

    From the docs:

    Send mail. The required arguments are an RFC 822 from-address string, a list of RFC 822 to-address strings (a bare string will be treated as a list with 1 address), and a message string.

提交回复
热议问题