Sending an Email in Python via Gmail

Sending an Email in Python via Gmail

LucidProgramming

6 лет назад

103,985 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@gamingguy577
@gamingguy577 - 22.07.2023 12:15

can anyone tell me how to fix this error while trying to send email using python:TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Ответить
@davidwhitecross1021
@davidwhitecross1021 - 30.06.2022 18:46

is there a workaround now that Google's introduced no access to toggling less secure apps?

Ответить
@prinsarnaproduction1133
@prinsarnaproduction1133 - 27.06.2022 23:36

Is there a way to send a email without knowing the password of the user?

Ответить
@Xcarbo
@Xcarbo - 10.05.2022 08:42

hello, can i get some help when i do pip install smtplib they say
EROR: could not find a version that satisfies the requirement smtplib (from version: none)
EROR: no matching distribution found for smtplib

Ответить
@psianipar
@psianipar - 15.02.2022 11:05

Great tutorial. Thanks a lot

Ответить
@oviyaa1512
@oviyaa1512 - 28.09.2021 12:39

What's the domain for tis project?

Ответить
@henulr4797
@henulr4797 - 04.06.2021 06:26

Hi there, Is there a way to keep the email stored in draft and not sent it directly?

Ответить
@Flobin
@Flobin - 27.04.2021 12:17

Thank you so much man :D

Ответить
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars - 20.04.2021 13:38

thank you, works like a charm :)

Ответить
@convolucion1981
@convolucion1981 - 14.01.2021 17:04

Great job

Ответить
@batumanav
@batumanav - 21.12.2020 21:43

Thanks for the tutorial. Can you explain how can I send mails from the accounts that are connected to my gmail account? I tried to change the first parameter (sender mail address) however it still sends on my original gmail account. Can you help?

Ответить
@ryansullivan8027
@ryansullivan8027 - 22.11.2020 18:47

This was a great tutorial. Thank you

Ответить
@alexanderburlingame3161
@alexanderburlingame3161 - 07.11.2020 07:42

Hi Lucid, great video—most helpful by far. I'm trying to make the body of my email a little more complex. I'd like it to have multiple lines, and either come from a .txt file or another python file.

Any guidance on how to do this?

Ответить
@JohnDoe-mt5uw
@JohnDoe-mt5uw - 26.10.2020 23:42

Thanks my guy!

Ответить
@akramelomrani8728
@akramelomrani8728 - 22.10.2020 17:19

thank you soo much

Ответить
@ibrahimasoumare7142
@ibrahimasoumare7142 - 13.10.2020 14:14

Thank you for your explanation !
I would like to know if it's possible to include a signature ?

Ответить
@DheemanSaha
@DheemanSaha - 02.09.2020 09:59

Good work

Ответить
@ponrajs5396
@ponrajs5396 - 04.08.2020 20:08

Thanks a lot man, it's working, but if you gave git link it'll be more easy 😅

Ответить
@sai4888
@sai4888 - 31.07.2020 15:44

I want to send mail to others from my email through automation

Ответить
@NaftuliSinger
@NaftuliSinger - 26.07.2020 21:38

Hey, awesome video, works amazingly and the first time!, the "To" field stays empty, and the email address (sent to) is always sent as "Bcc", why?

Ответить
@spegy624
@spegy624 - 20.07.2020 03:38

Mine says there is no config file

Ответить
@johnbill619
@johnbill619 - 16.07.2020 16:39

for some reason it isnt working heres all of my script:
import config

import smtplib

def send_email(subject, msg):
try:
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo()
server.starttls()
server.login(config.EMAIL_ADDRESS, config.PASSWORD)
message = 'Subject: {}\n\n{}'.format(subject.msg)
server.sendmail(config.EMAIL_ADDRESS, config.EMAIL_ADDRESS, message)
server.quit()
print('sucsess email sent')
except:
print('email failed to send')
subject = "test email"
msg = "hello, how are you today"
send_email(subject, msg)

Ответить
@reyanshkumar6087
@reyanshkumar6087 - 04.07.2020 16:37

Hi it's working , thank you but its only coming in mailtrap inbox and not it receiver inbox pls help

Ответить
@universenerd3627
@universenerd3627 - 03.07.2020 06:30

didn't work, did i do something wrong

Ответить
@sylvialiang5707
@sylvialiang5707 - 02.07.2020 16:45

Thank you so much for sharing! However it's been 15 minutes and my codes are still running... I did exactly the same thing. Do you have an idea of why this happened? Thank you again!

Ответить
@clancyhedman1932
@clancyhedman1932 - 28.06.2020 23:28

very helpful thanks!

Ответить
@muhammadumerowais3409
@muhammadumerowais3409 - 15.06.2020 09:09

receiver's address not given???

Ответить
@buddybob5502
@buddybob5502 - 11.06.2020 21:03

BROOO u are a pure genius. I have been spending hours on this but kept getting errors prob because of the app turn offf thing. THX SOOO MUCH

Ответить
@poojagrg39
@poojagrg39 - 10.06.2020 12:03

How to add attachment in email?

Ответить
@parasharupasana
@parasharupasana - 07.06.2020 00:27

Thanks a lot. I've a question.. How secure is this?

Ответить
@SachinKumar-ud2er
@SachinKumar-ud2er - 30.05.2020 23:57

can we send email from gmail to another domain like hotmail or outlook etc..?

Ответить
@NikolaJak
@NikolaJak - 30.05.2020 06:38

Thanks, man this worked perfectly I only have one question and that is can you send an email from your account to other people's email addresses'?

Ответить
@mynamevim2399
@mynamevim2399 - 15.05.2020 14:10

can you send bulk emails?

Ответить
@fubrian2945
@fubrian2945 - 14.05.2020 07:26

How do you get it to email other email account besides your own?

Ответить
@gayatrid2480
@gayatrid2480 - 09.05.2020 10:55

Most useful script that helps my script

Ответить
@cristeaadrian9682
@cristeaadrian9682 - 29.04.2020 13:15

thx

Ответить
@Amar-lv1yw
@Amar-lv1yw - 26.04.2020 14:35

It says that smtplib wasnt found. What can i do?

Ответить
@LEKIPE1
@LEKIPE1 - 19.04.2020 16:41

how can I send the email to someone ?

Ответить
@azote2039
@azote2039 - 17.04.2020 20:33

How do I install the smtplib package from the link in the desc please help

Ответить
@vekuaa
@vekuaa - 15.04.2020 14:20

Omg thank you man!

Ответить
@kbvrama
@kbvrama - 13.04.2020 18:41

if i need to send multiple recipients how to send could you help me out

Ответить
@JohnsonKongor
@JohnsonKongor - 04.03.2020 19:12

Thanks, Well done.

Ответить
@Prajwal_KV
@Prajwal_KV - 23.02.2020 15:03

did everything as per your instruction but still getting "email failed to sent "and in gmail account i received a security alert eventhough i gave access to the apps by turning on

Ответить
@syedmujeebh6661
@syedmujeebh6661 - 03.02.2020 15:20

Hi,
I'm getting below error in my Python 3.7.

context = ssl._create_stdlib_context(certfile=certfile,
AttributeError: module 'ssl' has no attribute '_create_stdlib_context'

May you please help me to clear out this error

Ответить
@hoganbrinson6798
@hoganbrinson6798 - 26.01.2020 05:36

Fantastic Video

Ответить
@touati3027
@touati3027 - 25.01.2020 16:37

how to add Html message pleas

Ответить
@touati3027
@touati3027 - 25.01.2020 15:42

Thank u sir i want ask how add html msg .

Ответить