Platform
Docs
Solutions
ContactLog In

Error: Python smtplib cc Not Working

What's Causing This Error

Sometimes, your email may be received successfully, except for the emails you declare as CC. A possible cause for this issue is that you are adding the emails to the message correctly but not adding the CC to the envelope.

Solution - Here's How To Resolve It

In such cases, when sending the email, try using the ccaddr with the toaddr.

For instance, consider the second parameter of the sendmail() method.

1 s.sendmail(fromaddr, toaddr+ccaddr, msg.as_string())

According to the documentation (link below), the message envelope gets created using the first two parameters (fromaddr and toaddr). So, adding the ccaddr to it will solve this issue and successfully send the email to CC recipients.

Read more here.

Other Common SMTPLIB Errors (and Solutions)

View all errors

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Build your first notification in minutes

Send up to 10,000 notifications every month, for free.

Get started for free

Email & push notification

Platform

Users

Content

Channels

Sending

Workflows

Preferences

Inbox

Workspaces

Observability

API Status

Changelog

© 2024 Courier. All rights reserved.