DEV Community 👩‍💻👨‍💻

Discussion on: Automating birthday wishes using Python

ktownrocky profile image

Nice Stuff.
How can i cc other friends when sending email to the friend with bday?.
I tried creating a variable and concatenate and it failed.
line of code:
data = pandas.read_csv("birthday.csv")
to_cc = data['Email'].tolist ### defining cc group
connection.sendmail(from_addr=my_email, to_addrs= [friend["email"]] + to_cc, msg=f"Subject: HAPPY BIRTHDAY Test\n\n{message}")

Ktown Rocky