-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on sendmail #23
Comments
Hello,
Try changing the port that you are using.
I suggest using port 465.
…On Tue, Aug 3, 2021 at 4:50 PM Mohammed Mogalli ***@***.***> wrote:
[image: Screenshot (83)_LI]
<https://user-images.githubusercontent.com/73108032/128005780-2135424b-bf81-4c5a-a78f-edcbe3d7120b.jpg>
Hello Sir ,
i have this issue please could you help me .
this is my code :
mail = smtplib.SMTP('smtp.gmail.com',587) #host and port area
mail.ehlo() #Hostname to send for this command defaults to the FQDN of the local host.
mail.starttls() #security connection
***@***.***','password') #login part
mail.sendmail('emailID','victimID',msg) #send part
print ("Congrates! Your mail has send. ")
tts = gTTS(text="Congrates! Your mail has send. ", lang='en')
ttsname=("send.mp3") #Example: path -> C:\Users\sayak\Desktop> just change with your desktop directory. Don't use my directory.
tts.save(ttsname)
music = pyglet.media.load(ttsname, streaming = False)
and this is the error :
You are logging from : moham
1. composed a mail.
2. Check your inbox
Your choice:
ok done!!
You said : 1
Your message :
ok done!!
You said : hi Mohammed
Traceback (most recent call last):
File
"C:/Users/moham/OneDrive/Desktop/voice-based-email-for-blind-master/voice_based_email_for_blind.py",
line 105, in
mail.sendmail('emailID','victimID',msg) #send part
File "C:\Python38\lib\smtplib.py", line 885, in sendmail
raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'victimID': (553, b'5.1.3 The
recipient address is not a valid RFC-5321 address. e16sm14535363pja.14 -
gsmtp')}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#23>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANYWOW2CFCGLKFYGPEDLZITT27GIHANCNFSM5BOT5PCQ>
.
|
still i get error says : Traceback (most recent call last):File "C:/Users/moham/OneDrive/Desktop/voice-based-email-for-blind-master/voice_based_email_for_blind.py", line 101, in |
Hello Sir ,
i have this issue please could you help me .
this is my code :
mail = smtplib.SMTP('smtp.gmail.com',587) #host and port area
and this is the error :
You are logging from : moham
Your choice:
ok done!!
You said : 1
Your message :
ok done!!
You said : hi Mohammed
Traceback (most recent call last):
File "C:/Users/moham/OneDrive/Desktop/voice-based-email-for-blind-master/voice_based_email_for_blind.py", line 105, in
mail.sendmail('emailID','victimID',msg) #send part
File "C:\Python38\lib\smtplib.py", line 885, in sendmail
raise SMTPRecipientsRefused(senderrs)
smtplib.SMTPRecipientsRefused: {'victimID': (553, b'5.1.3 The recipient address is not a valid RFC-5321 address. e16sm14535363pja.14 - gsmtp')}
The text was updated successfully, but these errors were encountered: