0

I'm trying to send an email using Python and Google's smtp. After calling it I get an error:

 msg = MIMEMultipart('alternative') TypeError: 'LazyImporter' object is not callable 

Did anyone had the same problem ? What's the solution for that ?

My code:

Pastebin code

1 Answer 1

1

Just change your imports to

from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.base import MIMEBase 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.