Ask coding questions

← Back to all posts
Emailing
ruiwenge2

How can I send emails with Python or Node.js?

Answered by Yimmee [earned 5 cycles]
View Answer
Voters
ruiwenge2
Comments
hotnewtop
Yimmee

see my yimmee repl. its not a pro thing, but i used my gmail to send emails.

ruiwenge2

@Yimmee is the password just your gmail password?

Yimmee
Yimmee

i added copiable code so you can just get it over with. remember to use secrets!

ruiwenge2

@Yimmee thanks!

Yimmee

you're welcome @ruiwenge2

Yimmee

it worked right @ruiwenge2?
i just remembered on npmjs.com it said that i need to turn on less secure app access

Xenity

@Yimmee There is a WAYYYY better way to do this, just use a mailto link: "[email protected]?subject=(your email subject)&body=(your body)" (unless you want to auto-send the email)

Xenity

@Xenity you just have to put mailto: before the link (it's a link because mailto counts as a link)

Yimmee

@Xenity
"with Python or Node.js"-OP
"In the browser"