But how should that list look like. mail_receivers = '[email protected], [email protected]' does not work, it only sends that mail to the first receivers.
Kenneth On Sep 28, 3:50 pm, mdipierro <[email protected]> wrote: > exactely like you said: > > def send( > self, > to, > subject='None', > message='None', > attachments=None, > cc=None, > bcc=None, > reply_to=None, > encoding='utf-8', > ): > > to, cc and bcc can be lists of addresses. > > On Sep 28, 7:11 am, Kenneth <[email protected]> wrote: > > > Hello, > > > I can´t get the mail.send to send mails the wat I like. > > > I´d like to do it like this mail.send(to=mail_receivers, > > cc=cc_receivers, subject='Test subject', message='Test message') > > > mail_receivers and cc_receivers would contain 1-5 e-mailaddresses? How > > do I construct those variables. > > > Kenneth > >

