It is definitely possible. Your exchange server should recognize it if you consider it as a full address. For example, if you want to send it person1, person2 and group3, use the following:
import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart address_book = [' person1@company.com ', ' person2@company.com ', ' group3@company.com '] msg = MIMEMultipart() sender = ' me@company.com ' subject = "My subject" body = "This is my email body" msg['From'] = sender msg['To'] = ','.join(address_book) msg['Subject'] = subject msg.attach(MIMEText(body, 'plain')) text=msg.as_string()
source share