Jump to content

well first, you have a typo, It should be smtp instead of smpt.

 

edit: I see that's not the main cause of the error (It would still cause it later tho). I think you need to declare the email correctly since that's not a string declaration. also, check If you mixed tabs and spaces.

Add me on Steam 😁 Elaine

Codeforces: Jeongyeon

PC Specs

  • AMD Ryzen 3 2200g
  • Gigabyte Radeon RX 570 4 GB
  • ASUS EX-A320M-GAMING
  • 2 x 4 GB V-Gen RAM 2666 Mhz
  • Seasonic 450W 80+ Bronze PSU
  • Samsung 850 EVO 250 GB

Laptop Specs (MSI PS42 8M)

  • Intel Core i5-8250U
  • Intel HD Graphics
  • 1 x 8 GB RAM
  • 256 GB SSD
Link to post
Share on other sites

2 minutes ago, Dujith said:

the first 2 variables need to be strings. the text needs to be in quotations marks


EMAIL_ADRESS = 'Alexbastol08@gmail.com'
EMAIL_PASSWORD = '123'

 

I have not used python yet but I thought you need no declaration because it detects the type automatically?

Link to post
Share on other sites

7 minutes ago, Teddy07 said:

I have not used python yet but I thought you need no declaration because it detects the type automatically?

the @ is used in python so you will need to quote that line.

and if you dont define it. The code will look like this:

x = green

Now your setting var x to var green. But green has not been defined so python will crap out :D 

Link to post
Share on other sites

8 minutes ago, Teddy07 said:

I have not used python yet but I thought you need no declaration because it detects the type automatically?

without the quote python might confused the string with other identifier (variables, constant, etc).

Add me on Steam 😁 Elaine

Codeforces: Jeongyeon

PC Specs

  • AMD Ryzen 3 2200g
  • Gigabyte Radeon RX 570 4 GB
  • ASUS EX-A320M-GAMING
  • 2 x 4 GB V-Gen RAM 2666 Mhz
  • Seasonic 450W 80+ Bronze PSU
  • Samsung 850 EVO 250 GB

Laptop Specs (MSI PS42 8M)

  • Intel Core i5-8250U
  • Intel HD Graphics
  • 1 x 8 GB RAM
  • 256 GB SSD
Link to post
Share on other sites

1 hour ago, ALBas126 said:

thanks guysSpicyP suggested to fix my tabs and spaces maybe that will fix it but im still getting errors

 

 

1 hour ago, ALBas126 said:

nv i still dosent work

 

Check your indentation, it matters in python. Look at this

 

image.png.2e6d744db28ca3f3270d10af62bfd697.png

 

Also it's really hard to help you if you won't even tell us what the new error says.

 

And by the way, use code tags, not screenshots to show us your code.

Don't ask to ask, just ask... please 🤨

sudo chmod -R 000 /*

Link to post
Share on other sites

7 hours ago, Teddy07 said:

I have not used python yet but I thought you need no declaration because it detects the type automatically?

It detects the type automatically, hence:

myEmail = "your@email.dom"
# rather than
string myEmail = "your@email.dom"

Python might be dynamically typed, but it's hardly magic: It still needs to have a way to figure the types and values: You can't have bare alphanumeric text lying around, as bare alphanumeric text is defined as source code. You can only have bare numeric text lying around, that's always interpreted as a number, and why you can't name something only with numeric characters.

ENCRYPTION IS NOT A CRIME

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×